Home > other >  Python functions and problems
Python functions and problems

Time:05-20

Function prototypes: retval, DST=CV. Threshold (SRC, thresh, very much, type [, DST])
If no return values obtained as a result, using parameter DST, spread and arguments?
Ret=[]
Cv2. Threshold (the original, 127, 255, cv2 THRESH_BINARY_INV, DST=ret)
There will be an error: TypeError: Expected Ptr For argument 'DST'
Shape.=the original shape
Ret=np. 'ones ([shape [0], shape [1]])
Cv2. Threshold (the original, 127, 255, cv2 THRESH_BINARY_INV, DST=ret)
This also is the result, obviously ret no threshold by the function change
  • Related