This script performs object tracking on input videos using YOLOv8 and allows you to specify bounding box colors. It supports threading for I/O, system resource monitoring, and preserves original video audio using FFmpeg.
- β YOLOv8 Object Detection and Tracking
- π¨ Customizable Bounding Box Color
- βοΈ Threaded Frame Reading/Writing
- π Real-Time CPU/GPU/RAM Monitoring
- π§ GPU Acceleration (CUDA supported)
- π Preserve Audio using FFmpeg
- πΎ Automatic Output Directory Creation
- π Progress Bar with
tqdm
git clone https://github.com/ProjectGlyphMotion/Script && cd Scriptpip install -r requirements.txt-
Ensure FFmpeg is installed and accessible from the command line.
-
If you want to use GPU power to process the video, ensure NVIDIA CUDA is installed properly.
-
Cuda can be a pain in the πHOLE if you have a 30 or 40 series card, here is a FIX
Run the script and enter the input video path when prompted:
python3 ot.py π΅ Blue
python3 ot.py --box_color 0,0,255 π΄ Red
python3 ot.py --box_color 255,0,0 π’ Green
python3 ot.py --box_color 0,255,0 - Videos are saved in the
output/directory. - Format:
<original_name>_processed.mp4
β Example Result
MIT License Β© 2025 Sayan Sarkar & Shitij Halder
Made with β€οΈ by Sayan and Shitij
This project is based on the Ultralytics YOLOv8, an acclaimed real-time object detection and image segmentation model.