我正试图从一个Google云存储url打开一个视频,并在一个云函数中处理它--这个文件是公开的。但是v.read()返回None。
示例视频url:https://storage.googleapis.com/dev-brdu1976/268.mov
v = cv2.VideoCapture(request.json['Source_Storage_Path'])
print(v)
frameNum = -1
while (True):
ret_value,frame = v.read()
if ret_value == False or frame is None:
print('Frame is None')
break
frameNum += 1
#do stuff发布于 2018-11-27 02:12:53
我想出了如何让它工作,但我没有深入细节。通过https请求视频没有打开-当我将url协议改为http时,它确实起作用了。
https://stackoverflow.com/questions/53482924
复制相似问题