Tracks a pendulum, given a video as input, and returns a .csv
with angular displacement of the pendulum.
Requires: Git, Maven
- Clone the repository.
git clone https://github.com/kiritofeng/jpendulum
- Switch to directory.
cd jpendulum
- Build with Maven.
mvn clean compile assembly:single
After obtaining the compiled jar
, run java -jar jpendulum.jar <video> <output file> <colour> <tolerance> <enable gui?>
.
video
is the video file to analyse.output file
is the file to output the result tocolour
is the colour to tracktolerance
is how much tolerance to giveenable gui
is an optional argument that defaults to false. By setting it to true, you can see a playback of the video, where the tracked regions are highlighted.