-
Notifications
You must be signed in to change notification settings - Fork 4
Description
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