Skip to content

A script that takes a video and returns an edited video containing an annotation about the found object.

Notifications You must be signed in to change notification settings

v0jz/object-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

YOLOv8 Video Object Detection

This project performs object detection on a video using YOLOv8 and OpenCV.

Requirements

Install the required dependencies:

pip install ultralytics opencv-python numpy torch torchvision

Usage

  1. Place your video file in the same directory as the script and name it video.mp4 or specify another path in video_path.
  2. Download a YOLOv8 pre-trained model (default: yolov8n.pt) or just run script to install it.
  3. Run the script:
python main.py
  1. The output video with detections will be saved as output.mp4.

GitHub Setup

Run the Script

python main.py

About

A script that takes a video and returns an edited video containing an annotation about the found object.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages