Issue: Unable to Stream Webcam Properly in OpenCV #146906
Unanswered
dirkniemann
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Hi everyone,
I’m trying to test if I can stream my camera feed in OpenCV. I have two cameras connected to my laptop:
Both cameras work fine when I use them in VLC or the Windows Camera app. However, I’m facing issues with OpenCV:
cv2.VideoCapture(0)
, I get the error:Error: Could not open webcam.
cv2.VideoCapture(1)
, I don’t see any error, but the displayed frame is completely black. I suspect index 1 should be the correct index for my external camera.Additionally:
I can’t figure out:
Here’s my code:
I would appreciate any advice on how to debug or resolve this issue. Are there additional configurations I should be checking? Is there a better way to test both cameras?
Thanks in advance!
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions