/Object-tracking

Tracking and counting vehicles

Primary LanguagePython

Tracking and counting vehicles

This project is about counting vehicles in a video. In first glance, it looks like detecting vehicles and counting them would lead us to what we want. However, this is true only for images and not videos. In videos, the whole process, i.e., object detection, will be repeated on each frame and therefore if our video has say 30 frames per second, each vehicle will be counted 30 times in each second of the video and it is obviously wrong. So, in addition to object detection, we need to have a technique to determine if we have already counted a vehicle and this could be achieved by tracking vehicles.

Demo

Bridge viewpoint

L.A.traffic.camera.mp4

Cluttered environment with numerous vehicles far from camera

Cluttered.Env.mp4

This project is done by mainly using these three packages:

How to use

To run this project, you can follow the instructions written in the Counting vehicles.ipynb notebook.

Contact me

Fastest way to contact me is by shooting me an email at: milad.goudarzi@mail.polimi.it