Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!ssize.empty() in function 'resize' #927

Open
hoggle64 opened this issue Sep 10, 2019 · 1 comment
Open

!ssize.empty() in function 'resize' #927

hoggle64 opened this issue Sep 10, 2019 · 1 comment

Comments

@hoggle64
Copy link

hoggle64 commented Sep 10, 2019

  • face_recognition version: 1.2.3
  • Python version: 3.6.8
  • Operating System: Linux Mint 19.2 Tina / Ubuntu 18.04
  • libcudnn7/now 7.6.3.30-1+cuda10.1 amd64
  • Cuda 10.1

Hardware

  • Nvidia RTX2080

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 bytes

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

@hoggle64
Copy link
Author

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:

[mpjpeg @ 0x8fdb880] Expected boundary '--' not found, instead found a line of 3 bytes [mpjpeg @ 0x8fdb880] Expected boundary '--' not found, instead found a line of 6 bytes [mpjpeg @ 0x8fdb880] Expected boundary '--' not found, instead found a line of 5 bytes [mpjpeg @ 0x8fdb880] Expected boundary '--' not found, instead found a line of 5 bytes [mpjpeg @ 0x8fdb880] Expected boundary '--' not found, instead found a line of 47 bytes [mpjpeg @ 0x8fdb880] Expected boundary '--' not found, instead found a line of 19 bytes [mpjpeg @ 0x8fdb880] Expected boundary '--' not found, instead found a line of 22 bytes [mpjpeg @ 0x8fdb880] Expected boundary '--' not found, instead found a line of 8 bytes [mpjpeg @ 0x8fdb880] Expected boundary '--' not found, instead found a line of 8 bytes Traceback (most recent call last): File "./test2.py", line 41, in <module> rgb_frame = frame[:, :, ::-1] TypeError: 'NoneType' object is not subscriptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant