You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ WARN:[email protected]] global /io/opencv/modules/videoio/src/cap_v4l.cpp (902) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
Video has ended or failed, try a different video format!
I know the problem is with opening the camera in Colab. But I couldn't find how to solve it.
The text was updated successfully, but these errors were encountered:
try:
vid = cv2.VideoCapture(int(video_path))
except:
vid = cv2.VideoCapture(video_path)
When I wrote --video 0, it looks for a camera but Colab doesn't have a camera. I have to connect to my local camera. But how can I do that? ( I saw the snippets about Javascript but I can't use it in this way.)
I'm using colab and when I run the following code:
then it says:
I know the problem is with opening the camera in Colab. But I couldn't find how to solve it.
The text was updated successfully, but these errors were encountered: