trimmer.py is the project file
Reconmended 16+gb RAM and a few cores
commands to run code
python3 trimmer.py footage.mp4 color endtimestamp
example command to run code
python ./trimmer.py 2024-04-17-06-30-02.mp4 red "2024-04-17-06-30-04"
-filename acts as the start timestamp and the last arugment is the ending timestamp.
-timestamps need to follow the same format as above with hyphens inbetween integers in year-month-day-hour-minute-second format.
-this example input will return all frames between the start and stop timestamp with cars that are red
analysis.jpg is the current frame the model is viewing
Built with python3 and opencv If error occur try the pips below and if they continue consult the FastSAM setup guide
pip install opencv-python
pip install torch
pip install numpy
Pre-traine models from: https://github.com/jitendrasb24/Car-Detection-OpenCV https://github.com/CASIA-IVA-Lab/FastSAM