Measure, analyze, and plot webcam frame timings.
- Supports most USB webcams and Luxonis Oak cameras
- Measures time between frames
- Saves frame times in .csv file
- Logs statistics (e.g. frames per second, mean deviation) to console
- Shows plot
- Create a virtual environment with a Python 3.10 interpreter
- Run
pip install -r requirements.txtto install dependencies - Configure the program for your camera by editing
create_camera.py. Use theOpenCvCameraclass for standard UVC webcams (e.g. Logitech C270) and theOakCameraclass for Luxonis Oak cameras. If your camera is not supported, you can add support yourself by implementing the abstract base classCameraBase. Pull requests welcome!
- Run
measure.pyto create a .csv file containing the delays between frames - Plots of existing csv files can be shown by running
plot.pywith the path to the file as argument - Stats of existing csv files can be shown by running
analyze.pywith the path to the file as argument - Run
display.pyto see the video stream of the camera. This is useful for troubleshooting
