OpenCV Pedestrian Counting
Hello,
Currently i am developing a pedestrian counter project using OpenCV+QT on linux. My idea about this process is;
Capture Frames.
Do Background Subtraction.
Clear noises (erode, dilate).
Find blobs (cvBlobslib) - foreground objects.
For each blob, set ROI and search for pedestrians (LBP with detectMultiScale) in these blobs (for better performance).
For each found pedestrian do a nested upper body search(Not sure) (better reliability).
If same pedestrian is found on continuing frames (3-4 frames maybe) - add that area to camshift and track - mark as pedestrian.
Exclude camshift tracked areas from blob detection for next frames.
If a pedestrian crosses a line increment number.
I want to know if i am on the right track. Do you have any suggestions for this task, or do you think some other ways are better than mine, or are there unnecessary steps in my algorithm?
Counting pedestrian is a difficult problem in a unconstrained scenario. Detecting and tracking pedestrians are also mostly open problems. As always, it would be nice if you could provide some image examples, then we can be more specific.