This script implements real-time object detection using YOLO models and your webcam. It captures video frames, processes them through a trained YOLO model, and displays the detected objects with bounding boxes and confidence scores. The output video is saved in AVI format for later review.
This repository is an improvement based on the codebase from Dipankar Medhi
pip install -r requirements.txt
To run the script, use the following command:
python main.py <model_path> --output <output_path>
model_path: Path to your YOLO model file (must end with .pt).
--output: (Optional) Path to save the output video (default is output.avi, must end with .avi).
python main.py yolov10x.pt --output detected_objects.avi
To exit the script, use Ctrl + C in the terminal that runs the script. This will terminate the script gracefully
This repository is licensed under the Unlicense, see the LICENSE file for more details
There are no datasets linked
There are no datasets linked