spoonsso / dannce

MIT License
214 stars 30 forks source link

Could not find enough inliers in imagePoints and worldPoints #126

Closed yuan0821 closed 2 years ago

yuan0821 commented 2 years ago

Hi. I used the calibration script, but an error occurs in matlab when doing estimateWorldCameraPose Could not find enough inliers in imagePoints and worldPoints. here are our parameters for one camera: image image

I think we clicked 4 points in the [xi,yi] = getpts ; but the error still said our imagePoints < 4.

spoonsso commented 2 years ago

You are getting that error because it is throwing away some of your points as outliers w/ high reprojection error. This is likely happening because of an issue with the intrinsic calibration. Looking at your intrinsic parameters, they seem irregular -- for instance, the principal point is normally close to the center of the image, whereas yours is off near the corner. This suggests to me that that intrinsics were not fit well.

See #127, perhaps you should try the anipose calibration system.

yuan0821 commented 2 years ago

Hi! Thank you so much for your reply. I will try to check the intrinsic params and re-calibrate again. Btw, when I try to use the script of dannce/calibration/multi-camera calibration/calibration_extrinsic_Lframe.m, it seems to work well on the same intrinsic params, I can get the extrinsic matrix and Triangulate them well in Label3D. So I just wonder if it may be the reason of dannce/calibration/acquire_calibration_3cam_mouse_clean.m?