solvepnp.cpp:92: error: (-215:Assertion failed) ( (npoints >= 4) || (npoints == 3

mac2024-06-26  50

 

 

执行代码 Calib3d.solvePnP(object_pts, image_pts, cameraMatrix, distCoeffs,         rvec, tvec); 时报错: solvepnp.cpp:92: error: (-215:Assertion failed) ( (npoints >= 4) || (npoints == 3

原因: 计算的数据维度不一样,改成一样就好了。

最新回复(0)