forked from RizwanMunawar/yolov8-object-tracking
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,46 @@ | ||
# yolov8-object-tracking | ||
YOLOv8 Object Tracking Using PyTorch, OpenCV and Ultralytics | ||
|
||
### 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 | ||
- https://chr043416.medium.com/train-yolov8-on-custom-data-6d28cd348262 | ||
|
||
### 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==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="yolo\data\datasets\images\bus.jpg" model=yolov8m.pt | ||
#Webcam | ||
python yolo\v8\detect\detect_and_trk.py model=yolov8m.pt source=0 model=yolov8m.pt show=True | ||
#External Camera | ||
python yolo\v8\detect\detect_and_trk.py model=yolov8m.pt source=1 model=yolov8m.pt show=True | ||
``` | ||
|
||
- Output file will be created in the working-dir/runs/detect/obj-tracking with original filename |