Attention! This forum will be made read-only by Dec-20. Please migrate to Most of existing active users should've received invitation by e-mail.
Ask Your Question


asked 2019-12-06 04:49:26 -0500

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

edit retag flag offensive close merge delete


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

supra56 gravatar imagesupra56 ( 2019-12-07 09:36:45 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-12-06 06:59:34 -0500

mvuori gravatar image

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

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-12-06 04:49:26 -0500

Seen: 416 times

Last updated: Dec 06 '19