提交 5f57d029 编写于 作者: A Alexander Alekhin

Merge pull request #7818 from catree:solvePnP_doc

...@@ -574,6 +574,9 @@ projections, as well as the camera matrix and the distortion coefficients. ...@@ -574,6 +574,9 @@ projections, as well as the camera matrix and the distortion coefficients.
- Thus, given some data D = np.array(...) where D.shape = (N,M), in order to use a subset of - Thus, given some data D = np.array(...) where D.shape = (N,M), in order to use a subset of
it as, e.g., imagePoints, one must effectively copy it into a new array: imagePoints = it as, e.g., imagePoints, one must effectively copy it into a new array: imagePoints =
np.ascontiguousarray(D[:,:2]).reshape((N,1,2)) np.ascontiguousarray(D[:,:2]).reshape((N,1,2))
- The methods **SOLVEPNP_DLS** and **SOLVEPNP_UPNP** cannot be used as the current implementations are
unstable and sometimes give completly wrong results. If you pass one of these two flags,
**SOLVEPNP_EPNP** method will be used instead.
*/ */
CV_EXPORTS_W bool solvePnP( InputArray objectPoints, InputArray imagePoints, CV_EXPORTS_W bool solvePnP( InputArray objectPoints, InputArray imagePoints,
InputArray cameraMatrix, InputArray distCoeffs, InputArray cameraMatrix, InputArray distCoeffs,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册