This project is made in order to learn and put into practice my knowledge of Python and some AI models implementation, it was born as a personal project after asking myself how many cars pass by my window every day.
I implemented Object detection using YOLOv4 and object tracking using DeepSort and TensorFlow.
It'll work fine with images and videos files and URLs as well as videos streaming platforms like YouTube.
Object.tracking.demo.1.-.YOLOv4.Deep.Sort.mp4
To see how this project works you have two options
- Clone the repository.
- Download YOLO weights into weights folder.
- Copy
.env.example
to.env
. - Run
docker-compose build
. - Run
docker-compose up
. - Open Postman or similar and make a POST to
http://127.0.0.1:5000/track-it
- Payload:
{ "output_filename": "some_filename_here", "source": "your image or video URL here" }
- Wait until terminal "processed" message.
- Open outputs folder and see the result.
NOTE: By default, this will run only with CPU support.
If you find any problem in my code or anything else, feel free to contact me, open an issue or do a pull request, that way I can keep learning, and I can improve the code so that way anyone else can learn from it in the best way.