Using OpenCV, I made my own script to track the motion of a pendulum in for my PHY180 (Mechanics) lab. The script detects the pendulum bob and track its motion in real-time for a directory of videos (samples taken) using cv2
. The module supports:
Generating plots for amplitude vs time, period vs time, period vs length, etc.
Performing curve fitting using
scipy
with uncertainties and residuals.Calculating quantities such as period and Q-factor.
View the source code and README.md
for more information on how to use the script. This page has not been fully written yet. Please check back later for updates.