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

OpenCV providing incorrect co-ordinates to QR codes. #457

Open
AhmedSamara opened this issue Feb 10, 2016 · 1 comment
Open

OpenCV providing incorrect co-ordinates to QR codes. #457

AhmedSamara opened this issue Feb 10, 2016 · 1 comment

Comments

@AhmedSamara
Copy link
Member

So using the solvePnP technique, we are getting incorrect values for the XYZ vector from the camera to the code.

This only happens on some computers. It happens on the BeagleBone, and on @BrettGoldbach Ubuntu laptop, but not on my fedora laptop.

Recalibrating the camera helped a little bit but not a lot.

We think the issue is related to the resolution of the camera.

On my laptop, where the bug did not happen, the resolution of the imshow was wrong.

It looks like the solvePnP complications are all done on the assumption that it's a 480x480 camera.

There are also some issues with different versions of openCV not working the same way. When running on the desktop, we never had to configure the resolution of the camera manually, but on the BeagleBone, we had to configure that just to get it to run.

It looks like there are still some configuration settings that we're not setting.

@mynameis7
Copy link
Contributor

If you are using 2 different versions of OpenCV, you need to write the version specific code in an if statement and check against the modules version variable.

http://www.pyimagesearch.com/2015/08/10/checking-your-opencv-version-using-python/

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

No branches or pull requests

2 participants