MvSMPLfitting icon indicating copy to clipboard operation
MvSMPLfitting copied to clipboard

how to generalize to single camera situation?

Open 0809zheng opened this issue 4 years ago • 4 comments

Hey bro, your repo is REALLY cool! I wanna use datasets by single camera, but I find it can't run correctly. Could you help me with this problem?

0809zheng avatar Jan 13 '21 11:01 0809zheng

Thank you for your interest. You can try to remove the view<2 in code/main.py Line50.

boycehbz avatar Jan 13 '21 12:01 boycehbz

Thanks for your help! There is still one problem. I don't know if the camera parameters do crutial to the results. It's hard for me to understand the numbers in the camera parameters files. I keep the camera parameters provided in the original codes, and get bad results for my own test images. If I would change the camera parameters, how can I do?

0809zheng avatar Jan 14 '21 02:01 0809zheng

If you don't have calibrated camera parameters, you can set the principle to h/2, w/2. The focal for intrinsic matrix could be 2000. The extrinsic parameter for a single-camera should be a 4*4 identity matrix. The camera parameter file can be rewritten as: 0 2000 0 h/2 0 2000 w/2 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 1 0

boycehbz avatar Jan 14 '21 03:01 boycehbz

Thanks for your advice! Now the code seems good, thank you again!

0809zheng avatar Jan 14 '21 06:01 0809zheng