Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up!ssize.empty() in function 'resize' #927
Comments
|
I've also tried the other webcam example. Here it works for some time(about 20-30 sec.) and then breaks again with this error message:
|
Hardware
Description
I am simply exectuing your example facerec_from_webcam_faster.py.
I am using a video stream from a Mobotix camera with this URL:
video_capture = cv2.VideoCapture('http://admin:xxxxxxxx@doorstation.mydomain.lan/control/faststream.jpg?stream=full')
When I run the code a windows pops up after 1 second. The windows shows the current livestream but then immediately closes again. On the command line I can see the following errors
this(repeated many times):
[mpjpeg @ 0x860b000] Expected boundary '--' not found, instead found a line of 34 bytes [mpjpeg @ 0x860b000] Expected boundary '--' not found, instead found a line of 55 bytes [mpjpeg @ 0x860b000] Expected boundary '--' not found, instead found a line of 127 bytes [mpjpeg @ 0x860b000] Expected boundary '--' not found, instead found a line of 127 bytes [mpjpeg @ 0x860b000] Expected boundary '--' not found, instead found a line of 3 bytesand finally this:
Traceback (most recent call last): File "./test.py", line 50, in <module> small_frame = cv2.resize(frame, (0, 0), fx=0.25, fy=0.25) cv2.error: OpenCV(4.1.1) /io/opencv/modules/imgproc/src/resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'resize'I've tried rebooting the computer without success.
I've no clue what this means and how to fix it.
Thanks in advance.