- This project aims to detect moving objects in a video and keep track of them.
- YOLOv8 is used to detect and localize each object in each frame.
- The DeepSort library from nwojke is used and modified to fit with the project and Tensorflow 2.X.
In this project:
- Objects' detections are obtained using Yolov8
- Non-max suppression is applied to the detections obtained from the YOLOv8 model in order to eliminate the overlapping bounding boxes using intersection over union
- The tracker is updated with the output of the non-max suppression
- Finally, a new video is produced using the updated tracks.
- Clone this repository
git clone https://github.com/toqaalaa20/Real-time-object-tracking
- Install the requirements
pip install requirements.txt
- Input your source video
- For an input video:
python main.py --input "path to your video"
- For using your camera:
python main.py --input camera