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
553 stars 198 forks source link

Track1/2_CAM_CAL problem #4

Open ChenMinQi opened 5 years ago

ChenMinQi commented 5 years ago

For some images(resolution: 4096x2160), after choosing 8 points in image, the vanishing point is given: right: (60970, 1488) and left: (2142, 139). The next step is "calcStGrdPt", but i find that after 10 minutes, "calcStGrdPt" funtions is still running. Sorry for I can't upload my own images

zhengthomastang commented 5 years ago

Hi ChenMinQi, first of all, thank you for your interest in our code. I am sorry about the problem you encounter. It seems to me that the left vanishing point position might be problematic, because it usually lies outside the image or is close to the frame edges. When such problems occur, I suggest you to use another set of points. I also developed another camera calibration tool recently, Cal_PnP, which is easier to use. I suggest you to try it out. :)

ChenMinQi commented 5 years ago

@zhengthomastang Very unlucky, Cal_PnP needs longitude and latitude for some points(such as zebra crossing) in videos. But the update of Google street view map in my video place is very very slow, so i can't find the zebra crossing in Google street view map. :(

zhengthomastang commented 5 years ago

Oops.. Sorry for the misleading instruction. Hope you figure out a way to complete the camera calibration. Let me know if you have any other question.

LionelLeee commented 5 years ago

For some images(resolution: 4096x2160), after choosing 8 points in image, the vanishing point is given: right: (60970, 1488) and left: (2142, 139). The next step is "calcStGrdPt", but i find that after 10 minutes, "calcStGrdPt" funtions is still running. Sorry for I can't upload my own images

I think it should be a negative number of fF parameters, resulting in an infinite loop, you can modify the negative sign in sqrt to abs

zhengthomastang commented 5 years ago

@LionelLeee Thanks for identifying the issue!

ho0-kim commented 5 years ago

I think it should be a negative number of fF parameters, resulting in an infinite loop, you can modify the negative sign in sqrt to abs

I tried @LionelLeee's solution, but it couldn't break the loop.

When I set "calGrdSzR" and "calGrdSzL" as 1 in 'cfg.json', it worked. And then, I gradually gave larger values on the items.