问题描述
我尝试了以下代码,但是vs.read()方法始终返回False。
import cv2
from google.colab.patches import cv2_imshow
vs = cv2.VideoCapture(0)
while True:
(grabbed,frame) = vs.read()
Google colab仅提供片段代码来捕获图像,而不能捕获视频。我该如何克服呢?
谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)