Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv3.4.1下cv::solvePnPRansac函数参数设置问题 #5

Open
EvanLumos opened this issue Oct 16, 2018 · 1 comment
Open

opencv3.4.1下cv::solvePnPRansac函数参数设置问题 #5

EvanLumos opened this issue Oct 16, 2018 · 1 comment

Comments

@EvanLumos
Copy link

cv::solvePnPRansac函数原代码:
cv::solvePnPRansac( pts_obj, pts_img, cameraMatrix, cv::Mat(), rvec, tvec, false, 100, 1.0, 100, inliers );
在opencv3.4.1下需要改为:
cv::solvePnPRansac( pts_obj, pts_img, cameraMatrix, cv::Mat(), rvec, tvec, false, 100, 1.0, 0.99, inliers );
才能正常运行。
原因:opencvcv3.4.1中cv::solvePnPRansac限定@param confidence The probability that the algorithm produces a useful result.参数confidence大小限定在(0,1).

@DYK395
Copy link

DYK395 commented Aug 14, 2024

你这两个有什么区别

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants