-
Notifications
You must be signed in to change notification settings - Fork 267
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
Error while using calibrate_cameras #32
Comments
This is cool to know. Does |
I found the documentation of cv2.stereoCalibrate but I'm confused... "imageSize" is definitely in the place where #16 placed it. It was in the place where I placed it in old version ("import cv") but in my project I definitely have "import cv2". I'm not sure if this is really an issue or just some kind of a bug and on which side: SteroVision, OpenCV, Python or PyCharm... |
Hmm... Yeah, I don't have a setup where I can test it but the OpenCV API has been a bit volatile in the past, leading to such things. I don't think it's possible that Python or PyCharm could be causing it, and StereoVision has worked for a lot of people so I think what we're looking at is some change in the function header as exposed by OpenCV. I'm glad it's working for you now though. |
in the opencv4.4 hais the same problem, self.image_size in the wrong place. |
When using calibrate_cameras I was getting such an error:
cv2.error: OpenCV(3.4.3) C:\projects\opencv-python\opencv\modules\calib3d\src\calibration.cpp:1318: error: (-211:One of arguments' values is out of range) image width and height must be positive in function 'cvCalibrateCamera2Internal'
I found that #16 was a fix for similar issue. I reverted that change, placed self.image_size after calib.dist_coefs["right"] and everything is ok now.
So this piece of code look at the moment like that in my project:
The text was updated successfully, but these errors were encountered: