This will only work with ultralytics==8.0.0. However, I strongly recommend using the latest Ultralytics package and following the official Ultralytics code: GitHub Repository.
- Clone the repository
https://github.com/RizwanMunawar/yolov8-object-tracking.git- Cd to cloned folder
cd yolov8-object-tracking- Install the ultralytics package
pip install ultralytics==8.0.0- Do Tracking with the 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
| YOLOv8s Object Tracking | YOLOv8m Object Tracking |
![]() |
![]() |
Some of my articles/research papers | Computer vision awesome resources for learning | How do I appear to the world? 🚀
Ultralytics YOLO11: Object Detection and Instance Segmentation🤯
Parking Management using Ultralytics YOLO11
My 🖐️Computer Vision Hobby Projects that Yielded Earnings
Best Resources to Learn Computer Vision
Roadmap for Computer Vision Engineer
How did I spend 2022 in the Computer Vision Field
Domain Feature Mapping with YOLOv7 for Automated Edge-Based Pallet Racking Inspections
Exudate Regeneration for Automated Exudate Detection in Retinal Fundus Images
Feature Mapping for Rice Leaf Defect Detection Based on a Custom Convolutional Architecture
Yolov5, Yolo-x, Yolo-r, Yolov7 Performance Comparison: A Survey
Explainable AI in Drug Sensitivity Prediction on Cancer Cell Lines
More Information
For more details, you can reach out to me on Medium or connect with me on LinkedIn

