In this video, we are using the Haar cascade classifier to identify vehicles and also assign IDs to vehicles. We have used a correlation tracker from dlib library.
Speed Calculation
We are calculating the distance moved by the tracked vehicle in a second, in terms of pixels, so we need pixel per meter to calculate the distance traveled in meters. With the distance traveled per second in meters, we will get the speed of the vehicle.
Required:
Python3
opencv3
dlib
if you want to test vehicle speed detection use code from the video here XML file: https://github.com/noorkhokhar99/vehi...
Resources:
🌏 pyresearch: https://pyresearch.org
Support the content: https://pyresearch.org/support
Channel membership: / @pyresearch
Facebook: / pyresearch
Youtube: / pyresearch
medium: / pyresearch
Instagram: / pyresearch
LinkedIn: / pyresearch
Twitter: / noorkhokhar10
Discord: / discord
Github: https://github.com/Pyresearch
Quora: https://www.quora.com/profile/Pyresearch
Github: https://github.com/noorkhokhar99