How to use cap = cv2.VideoCapture(0) in Google Colab

喜欢而已 提交于 2019-11-30 20:31:55

问题


cap = cv2.VideoCapture(0) is not opening web camera when executing the command in Google Colab.


回答1:


Since Colab is running in your browser, you'll want to use web APIs to access local hardware like a camera.

Here's an example showing how to capture an image from your local webcam in Colab: https://colab.research.google.com/notebooks/snippets/advanced_outputs.ipynb#scrollTo=2viqYx97hPMi



来源:https://stackoverflow.com/questions/54389727/how-to-use-cap-cv2-videocapture0-in-google-colab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!