Computer Vision Car Tracking Detection and Speed Calculation with YOLOv8, Sort and OpenCV.
Using the YOLOv8 Model to detect any Car from the Video or Image, and then that Detection is passed through the Sort Algorithm to Keep Track of the same Car.
To Calculate the Speed of the Car, it was used the equation (V = D / T)
. The Variable Time was recorded when the Car crossed two Parallels Lines, and the Distance was calculated with the Eucledian Formula of those two Parallels Lines.
Check-it out
The Code of the Project is in the speed_detection.ipynb
file and the Video Test is in the video
folder.
Resources
Car Detection and Speed Calculation with YOLOv8, Sort and OpenCV Preview: https://www.youtube.com/watch?v=5kGVyArfo6Y
Code: https://github.com/mendez-luisjose/Car-Detection-and-Speed-Calculation-with-YOLOv8-Sort-and-OpenCV