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

Fix Python 2 bindings for findContours #3006

Merged
merged 1 commit into from Jul 28, 2014

Conversation

smvv
Copy link
Contributor

@smvv smvv commented Jul 26, 2014

The sanity check prevents Python 2 from calling findContours, because the
Python 2 bindings pass an empty matrix for _contours. If _contours is not
empty, the channel and depth check should determine whether the matrix is of
the correct type and size.

Note: the Python 2 bindings passes a matrix of type STD_VECTOR_MAT to
parameters of the type OutputArrayOfArrays.

This fixes the following bug reports:

The sanity check prevents Python 2 from calling findContours, because the
Python 2 bindings pass an empty matrix for `_contours`. If `_contours` is not
empty, the channel and depth check should determine whether the matrix is of
the correct type and size.

Note: the Python 2 bindings passes a matrix of type `STD_VECTOR_MAT` to
parameters of the type `OutputArrayOfArrays`.
@vpisarev vpisarev self-assigned this Jul 28, 2014
@vpisarev
Copy link
Contributor

👍

@opencv-pushbot opencv-pushbot merged commit d25770e into opencv:master Jul 28, 2014
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

3 participants