You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code should be shown as valid: cv2.compare(some_array, 10, cv2.CMP_EQ)
Although the docs for compare show the type of src1 and src2 to be InputArray, the description of the parameters says "input array or a scalar; when it is an array, it must have a single channel" and passing an int does work.
Actual behaviour
The int (10) is shown as a error because the pyi only allows src1 and src2 to be UMat/MatLike.
Steps to reproduce
example code: above code shows this error
opencv-python version: 4.10.0.84
Issue submission checklist
This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
I'm using the latest version of opencv-python
The text was updated successfully, but these errors were encountered:
Expected behaviour
The following code should be shown as valid:
cv2.compare(some_array, 10, cv2.CMP_EQ)
Although the docs for compare show the type of
src1
andsrc2
to beInputArray
, the description of the parameters says "input array or a scalar; when it is an array, it must have a single channel" and passing anint
does work.Actual behaviour
The
int
(10
) is shown as a error because thepyi
only allowssrc1
andsrc2
to beUMat
/MatLike
.Steps to reproduce
Issue submission checklist
opencv-python
The text was updated successfully, but these errors were encountered: