andrewssobral / vehicle_detection_haarcascades

Vehicle Detection by Haar Cascades with OpenCV
543 stars 520 forks source link

Report file #4

Closed quyduy closed 7 years ago

quyduy commented 8 years ago

Thank you for sharing the code. COuld you please let me know how i can get the report after running the code. Regards

andrewssobral commented 8 years ago

Hi @quyduy Thank you too for enjoying the algorithm source code. What do you mean precisely by "getting report"? This is about how many vehicles were detected?

quyduy commented 8 years ago

Hi Andrewssobral,

Yes, if i want to know how many cars were detected and the speed of each car, what do ia have to do.

Thank you very much for your support.

andrewssobral commented 8 years ago

Hi @quyduy you have two special cases:

  1. for the vehicle counting problem, you need a multi-object tracking algorithm. Some nice algorithms for multiple tracking are Multiple Hypothesis Tracking and Particle Filter.
  2. for estimating the vehicle speed you can use the centroid of each vehicle (given by a tracker) under some non-linear transformation or regression. However, you may need the real vehicle speed for calibration. You can follow this post Real-time speed estimation of cars with OpenCV wrote by Armin.