A Python project that detects cars in a video using the Ultralytics YOLOv8 model and displays the results live with OpenCV.
- Python 3.8+
pip install ultralytics opencv-pythonThe code will:
- Load the tiny YOLOv8 model (
yolov8n.pt). - Read frames from
cars.mp4. - Draw green bounding-boxes around objects classified as car.
- Show the annotated frames in a window.
