Ask Your Question

Revision history [back]

python requests mjpeg url

frame = cv2.imdecode(np.asarray(bytearray(jpg), dtype=np.uint8), cv2.IMREAD_COLOR) this line error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:726: error: (-215:Assertion failed) !buf.empty() && buf.isContinuous() in function 'cv::imdecode_' What should I do? i will be waiting for your reply

click to hide/show revision 2
retagged

updated 2019-04-22 02:27:23 -0600

berak gravatar image

python requests mjpeg url

frame = cv2.imdecode(np.asarray(bytearray(jpg), dtype=np.uint8), cv2.IMREAD_COLOR) this line error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:726: error: (-215:Assertion failed) !buf.empty() && buf.isContinuous() in function 'cv::imdecode_' What should I do? i will be waiting for your reply