zhengthomastang / 2018AICity_TeamUW

The winning method in Track 1 and Track 3 at the 2nd AI City Challenge Workshop in CVPR 2018 - Official Implementation
http://openaccess.thecvf.com/content_cvpr_2018_workshops/w3/html/Tang_Single-Camera_and_Inter-Camera_CVPR_2018_paper.html
550 stars 198 forks source link

Height of vehicles effect on real distance between 2 frames #31

Closed navidnadery closed 2 years ago

navidnadery commented 2 years ago

Hi, Thank you for the tutorial. I have a problem in estimating real distance of 2 objects (an object in 2 consecutive frames). Height of the vehicle (from ground) can influence on our estimate, how can I handle it? In step 2, you use camera calibration then perspective, however they assume that all object are on ground and are flat.

I really appreciate your guidance

zhengthomastang commented 2 years ago

That depends on how you decide the foot points of the two objects. The method we used based on bounding boxes may not work well for high precision. I would suggest to choose the center of mass of the segmented mask. But the most accurate approach might be training an additional model to estimate the foot points of vehicles.

navidnadery commented 2 years ago

Thank you for your recommendations. I've tried centering of mass, but it does not help. However, training a model seems good.