Skip to content

YOLOv8 Object Tracking Using PyTorch, OpenCV and Ultralytics

License

Notifications You must be signed in to change notification settings

MixKup/yolov8-object-tracking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yolov8-object-tracking

Features

  • Object Tracks
  • Different Color for every track
  • Video/Image/WebCam/External Camera/IP Stream Supported

Coming Soon

  • Selection of specific class ID for tracking
  • Development of dashboard for YOLOv8

Train YOLOv8 on Custom Data

Steps to run Code

  • Clone the repository
https://github.com/RizwanMunawar/yolov8-object-tracking.git
  • Goto cloned folder
cd yolov8-object-tracking
  • Install the ultralytics package
pip install ultralytics

or

pip install ultralytics==8.0.0
  • Do Tracking with mentioned command below
#video file
python yolo\v8\detect\detect_and_trk.py model=yolov8s.pt source="test.mp4" show=True

#imagefile
python yolo\v8\detect\detect_and_trk.py model=yolov8m.pt source="path to image"

#Webcam
python yolo\v8\detect\detect_and_trk.py model=yolov8m.pt source=0 show=True

#External Camera
python yolo\v8\detect\detect_and_trk.py model=yolov8m.pt source=1 show=True
  • Output file will be created in the working-dir/runs/detect/train with original filename

Results

YOLOv8s Object Tracking YOLOv8m Object Tracking

References

My Articles

LinkedIn Post on YOLOv8 Release

Don't forget to check out my Services

For more details, you can reach out to me on Medium or can connect with me on LinkedIn

About

YOLOv8 Object Tracking Using PyTorch, OpenCV and Ultralytics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 99.1%
  • Shell 0.9%