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

Result values are wrong #4

Open
holazollil opened this issue Dec 4, 2015 · 5 comments
Open

Result values are wrong #4

holazollil opened this issue Dec 4, 2015 · 5 comments

Comments

@holazollil
Copy link

I run this code. I expect that positions of projectedPoints[i] is equal to position of imagepoints[i]. But when I write their values, they are different.

Is there a problem on this code?

@daviddoria
Copy link
Owner

Which code did you run?

@holazollil
Copy link
Author

I run SolvePNP.cxx taken from
https://github.com/daviddoria/Examples/blob/master/c%2B%2B/OpenCV/SolvePNP/SolvePNP.cxx

2015-12-04 22:20 GMT+02:00 David Doria [email protected]:

Which code did you run?


Reply to this email directly or view it on GitHub
#4 (comment).

@daviddoria
Copy link
Owner

I would also expect that was the idea of the example. I don't know if I accidentally hardcoded the wrong points when I made this or if something changed in OpenCV since I made it. If you would like to hand-compute the correct projections and then make sure they agree with OpenCV's projections and send a pull request I'd be happy to merge it.

@abhigarg
Copy link

the camera calibration matrix is being set as identity matrix which is wrong

@daviddoria
Copy link
Owner

@abhigarg Care to submit a fix :) ?

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

3 participants