Ask Your Question
0

Error of opening camera with OpenCV

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

loguna gravatar image

Hi,

I wish to initalise my camera using opencv and have set it cap = cv2.VideoCapture("/dev/video1") However, i recieve this error: VIDEOIO ERROR: V4L2: Could not obtain specifics of capture window.

Can someone please explain and help me?

edit retag flag offensive close merge delete

Comments

please use numeric ids, not device names, like:

cap = cv2.VideoCapture(1)

berak gravatar imageberak ( 2019-12-26 05:18:20 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-12-26 08:57:13 -0500

supra56 gravatar image

updated 2019-12-26 09:29:07 -0500

This work for building robot, autonomous car, etc. Fortunately, for linux, I used lower index cap = cv2.VideoCapture("/dev/video0"). Unfortunately, i'm uncertainly about window 10 or older version.

  • Run the following command

    ls -la /dev/video*

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 106 times

Last updated: Dec 26 '19