Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv2.imread() does NOT throw an exception if your image could not be read, but returrns None instead.

you MUST check on your own here, else the next operations will fail

(also, using np.copy or even cv2.UMat does not make any sense here.)

your image was never read correctly.

cv2.imread() does NOT throw an exception if your image could not be read, but returrns None instead.

you MUST check on your own here, else the next operations will fail

(also, using np.copy or even cv2.UMat does not make any sense here.)