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
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