Ask Your Question
0

VideoCapture in Colab

asked Jun 27 '0

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

Preview: (hide)

Comments

Used google search for VideoCapture in Colab opencv python

supra56 gravatar imagesupra56 (Jun 27 '0)edit

1 answer

Sort by » oldest newest most voted
0

answered Jun 27 '0

berak gravatar image

updated Aug 17 '0

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...

Preview: (hide)

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 (Jun 27 '0)edit

whats with opencv js?

holger gravatar imageholger (Jun 29 '0)edit
1

@holger, seems you were close ;)

berak gravatar imageberak (Aug 17 '0)edit

Question Tools

1 follower

Stats

Asked: Jun 27 '0

Seen: 20,838 times

Last updated: Aug 17 '20