I came across this project. Fantastic work!! The Detection part needs to be finetuned for the Indian scenario, the tracking seems fine performing decently. You can spot a few false positives, Trucks on the other side of the lane are not detected, Indian Trucks are not well recognized. This can be handled by a custom detection model. Overall the tracking and counter approach can be reused in multiple scenarios.
Clone the project - object_counting_api
vehicle_counting.py - Executed this for some of my highway videos.
The objects passing through the line will be counted and incremented. Minor changes to roi
Output of the same
Happy Learning!!!
Clone the project - object_counting_api
vehicle_counting.py - Executed this for some of my highway videos.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
is_color_recognition_enabled = 1 # set it to 1 for enabling the color prediction for the detected objects | |
roi = 600 # roi line position | |
deviation = 2 # the constant that represents the object counting area |
Output of the same
Happy Learning!!!
No comments:
Post a Comment