Ask Your Question
0

VideoCapture in Colab

asked 2020-06-27 02:58:57 -0600

How do i use cv2.VideoCapture(0) in google colab. I want to use the live video from my webcam in colab. Is there anyway to do it

edit retag flag offensive close merge delete

Comments

Used google search for VideoCapture in Colab opencv python

supra56 gravatar imagesupra56 ( 2020-06-27 05:22:07 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-06-27 03:09:49 -0600

berak gravatar image

updated 2020-08-17 09:55:18 -0600

sad as it is -- no way

(the processing happens on goog's servers, they'll have no physical access to your device)

updated:

while you still cannot use cv2.VideoCapture(), there's some js magic to grab your webcam from the browser, see here:

https://colab.research.google.com/not...

edit flag offensive delete link more

Comments

since current 4.1.2 installed there has full ffmpeg support, you might be able to use video files (prerecord locally and upload to colab)

berak gravatar imageberak ( 2020-06-27 03:32:15 -0600 )edit

whats with opencv js?

holger gravatar imageholger ( 2020-06-29 17:18:07 -0600 )edit
1

@holger, seems you were close ;)

berak gravatar imageberak ( 2020-08-17 09:53:15 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-06-27 02:58:57 -0600

Seen: 19,729 times

Last updated: Aug 17 '20