Skip to content

error while opening camera #7

@Alok589

Description

@Alok589

Hello,

Thanks for the tutorial.
I am facing an issue with the following code snippet.
cap = cv2.VideoCapture(0)
And the error is

[ WARN:0] global /tmp/pip-req-build-1syr35c1/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index

Can you suggest any idea how I can make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions