-
Notifications
You must be signed in to change notification settings - Fork 4
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
(-215:Assertion failed) !ssize.empty() in function 'resize' #1
Comments
Thanks. It's been fix. it was not getting the frame from the camera. |
@cognitiveRobot how did you fix it? |
@chaine09 sorry I forgot. I will check and let you know asap. |
@chaine09, Sorry again. I lost the old project and couldn't reproduce the error from the new code. |
Hello @cognitiveRobot, can you remember if you fixed any line of code or downloaded any package? |
Hey try to check if the file is not 0 bytes... A 0 bytes image caused that error for me. |
i had the same problem, it cause by some coordinate value is less than zero |
i had the same problem, it caused by no frame or image ,try printing the length |
@TheMrCoder I agree, I encountered the same issue with invalid image file. |
I guess the error is due to invalid image file or file not found. Make sure you are referencing the file correctly and image is not broken. |
The real error is due to the camera connecting, you just need to connect your camera then the error will disappear. |
It's strange.. its no problem runing in vscode but terminal,i dont know how to fix it :( |
I try to uninstall torch1.2.0 and found that another torch1.1 still existed. |
Hi Fabito,
Thank you for your code. I am trying to run webcam.py file. But, I get the following error
**Traceback (most recent call last):
File "/usr/local/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, *self._kwargs)
File "/usr/local/lib/python3.6/multiprocessing/pool.py", line 103, in worker
initializer(initargs)
File "mainWebCam.py", line 70, in worker
frm = detect_objects(frm, net, min_confidence)
File "mainWebCam.py", line 36, in detect_objects
blob = cv.dnn.blobFromImage(frame, inScaleFactor, (inWidth, inHeight), (0, 0, 0), True, False)
cv2.error: OpenCV(3.4.2) /io/opencv/modules/imgproc/src/resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function 'resize'
output of pip list
$ pip list
Package Version
imutils 0.4.6
mtcnn 0.0.7
numpy 1.14.5
opencv-contrib-python 3.4.2.16
pip 18.0
setuptools 28.8.0
utils 0.9.0
Can you please help?
Regards
Hossain
The text was updated successfully, but these errors were encountered: