-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
python binding for aruco estimatePoseSingleMarkers broken #574
Comments
This looks like a reasonable workaround to me. However, I'm not familiar enough with the internals of the wrapping process to say if there may not be a better solution. But if this fixes it for you, please submit it as a pull request. Thanks. |
this is not a fix as it prevents passing in preallocated arrays. The underlying problem is that the line |
type should be OutputArray instead of OutputArrayOfArrays. at<Vec3d> is one dimensional. (fixes debug assert) fixes opencv#574
I am having the exact same problem as @adrianheron . I am using Open CV 3.1.0 downloaded 2 weeks ago. I get the following error: Using the patch by @adrianheron in original question solves my problem. Any ideas? |
same as @adrianheron
maybe try this patch ... |
Configuration:
opencv 3.1.0
opencv_contrib #554
python 2.7.8 (tried 32 and 64 bit)
tried Windows and Ubuntu
I've been trying to use the python bindings for aruco with some success but when calling the estimatePoseSingleMarkers function it crashes on https://github.com/Itseez/opencv_contrib/blob/3.1.0/modules/aruco/src/aruco.cpp#L866 with:
cv2.error: ...\opencv\modules\core\src\matrix.cpp:1201: error: (-215) 0 <= i && i < (int)v.size() in function cv::_InputArray::getMat_
There appears to be some problem with the way the OutputArrayofArrays _rvecs and _tvecs are handled. After some trial and error I was able to make it work with the following code, but I'm pretty sure this is not the right way to do it. It would be great if someone who knew what they were doing had a look!
The text was updated successfully, but these errors were encountered: