VIDEOIO ERROR:V4L:cannot open camera by index 0
Traceback (most recent call last):
File "run_webcam.py",line 130,in
main()
File "run_webcam.py", line 57, in main
frame_resize = cv2.resize(frame, None, fx=1 / DOWNSAMPLE_RATIO, fy=1 /DOWNSAMPLE_RATIO)
cv2.error: OpenCV(3.4.2) /io/opencv/modules/imgproc/src/resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function ‘resize’
VIDEOIO ERROR:V4L:cannot open camera by index 0 Traceback (most recent call last): File "run_webcam.py",line 130,in
main()
File "run_webcam.py", line 57, in main
frame_resize = cv2.resize(frame, None, fx=1 / DOWNSAMPLE_RATIO, fy=1 /DOWNSAMPLE_RATIO)
cv2.error: OpenCV(3.4.2) /io/opencv/modules/imgproc/src/resize.cpp:4044: error: (-215:Assertion failed) !ssize.empty() in function ‘resize’
在笔记本上报错如上