Counting HaarCascade Detections for Vehicle Detection
Hi All
So I'm making use of the EmguCV Wrapper, and I have implemented a HaarCascade method to detect vehicles as the enter "X" premises. My question is, how do I count these vehicles without having duplicate detections affect the count result?
Eg. Frame 1 detects "2 Vehicles", therefore the count is 2. Frame 2 detects "3 Vehicles (1 new, 2 from the previous frame)", now then count is 5, even though it should be 3.
How should I go about doing this? Any suggestions?
Thanks in advance!
Why not track the vehicle bounding box from frame to frame to avoid duplicates?
That sounds good, but how do I exactly do that?
I wrote more information in the answer.
Is it possible to count the number of detected vehicles and display a text message?