Ask Your Question

Revision history [back]

How to detect and count cars in different lanes using HAAR cascade


I am developing an application where I want to detect the cars in different lanes of the road and keep the count in separate counters. I have developed the program that can detect the cars from an input video file using a trained xml classifier. It detects all them as a whole and I want to count the number of cars that are passing through each lane.

Can someone please guide me how to implement this? Do I need to train my classifier for that or can I just draw imaginary lines to represent different lanes?

Thank you!