2018AICity_TeamUW icon indicating copy to clipboard operation
2018AICity_TeamUW copied to clipboard

Track1/2_CAM_CAL problem

Open ChenMinQi opened this issue 6 years ago • 6 comments

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

ChenMinQi avatar Dec 19 '18 03:12 ChenMinQi

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. :)

zhengthomastang avatar Dec 19 '18 06:12 zhengthomastang

@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. :(

ChenMinQi avatar Dec 19 '18 08:12 ChenMinQi

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.

zhengthomastang avatar Dec 19 '18 08:12 zhengthomastang

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

LionelLeee avatar Jun 19 '19 04:06 LionelLeee

@LionelLeee Thanks for identifying the issue!

zhengthomastang avatar Jun 19 '19 04:06 zhengthomastang

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.

ho0-kim avatar Jul 23 '19 10:07 ho0-kim