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
your
bytearray(jpg))
is something else than expected (probably an error msg / tuple)please check, and refrain from using shortcuts like x(y(z(a(b(c()))))).
(do one step at a time, so you can debug it properly)
My code this,give me that after a while writing error.I run debug mode but I don't find error
what is
needed for ?