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

cvCalibration2 bug in calibrate_cameras #16

Merged
merged 1 commit into from
Jun 19, 2017
Merged

cvCalibration2 bug in calibrate_cameras #16

merged 1 commit into from
Jun 19, 2017

Conversation

melhousni
Copy link
Contributor

No description provided.

@croomjm
Copy link

croomjm commented Jun 16, 2017

Second this pull request. Without this change, I get the following error.

cv2.error: /Users/jhelmus/anaconda/conda-bld/work/opencv-2.4.8/modules/calib3d/src/calibration.cpp:1477: error: (-211) image width and height must be positive in function cvCalibrateCamera2

Per cv2 docs, arguments should be listed in the following order:

Python: cv2.stereoCalibrate(objectPoints, imagePoints1, imagePoints2, imageSize[, cameraMatrix1[, distCoeffs1[, cameraMatrix2[, distCoeffs2[, R[, T[, E[, F[, criteria[, flags]]]]]]]]]]) → retval, cameraMatrix1, distCoeffs1, cameraMatrix2, distCoeffs2, R, T, E, F

croomjm added a commit to kespry/StereoVision that referenced this pull request Jun 16, 2017
@erget erget merged commit 1adff45 into erget:master Jun 19, 2017
@erget
Copy link
Owner

erget commented Jun 19, 2017

Thanks for this!

@sokol07
Copy link

sokol07 commented Dec 18, 2018

I just had the same problem with Python 3.7 and OpenCV 3.4.3.18.
I had to move the self.image_size back between dist_coefs["right"] and calib.rot_mat.

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

Successfully merging this pull request may close these issues.

None yet

4 participants