First time here? Check out the FAQ!

Ask Your Question
0

HELP FOR VIDEOIO Error

asked Dec 6 '19

Cyborg gravatar image

Guys I'm using ubuntu in windows subsytem for linux, I am now working on image processing with opencv and python, The image detection and face recognition goes well for a file , but when comes to live interface with my externally connected webcam it shows an error: VIDEOIO ERROR: V4L: can't open camera by index 0 Please help me to solve this within this subsytem

Preview: (hide)

Comments

Try cap = cv2.VideoCapture(1) instead of zeros.

supra56 gravatar imagesupra56 (Dec 7 '19)edit

1 answer

Sort by » oldest newest most voted
0

answered Dec 6 '19

mvuori gravatar image

Apparently, WSL can't access camera and OpenCV can't do anything about it.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Dec 6 '19

Seen: 1,277 times

Last updated: Dec 06 '19