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

VIDEOIO ERROR:V4L:cannot open camera by index 0 #37

Open
vuexiaob opened this issue Dec 12, 2019 · 1 comment
Open

VIDEOIO ERROR:V4L:cannot open camera by index 0 #37

vuexiaob opened this issue Dec 12, 2019 · 1 comment

Comments

@vuexiaob
Copy link

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’

在笔记本上报错如上

@OrkhanHI
Copy link

It is your webcam issue, you can try with index 1 (-src 1) as well.

python run_webcam.py -src 0 --landmark-model shape_predictor_68_face_landmarks.dat --tf-model frozen_model.pb

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

2 participants