mirror of https://github.com/opencv/opencv.git
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`.pull/3006/head
parent
7da0e37ba8
commit
d25770ee76
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue