我有一个.tar
文件,其中包含一个.mp4
视频。我需要在PyQt4中通过OpenCV(v2.4.8)打开它们,而不需要将归档文件解压到文件系统中。你知道吗
这里有reading images from tar的解
实例:
import cv2
import numpy as np
import tarfile
tar0 = tarfile.open('files.tar')
fileg = tar0.extractfile('1.mp4')# (may be convert fileg to VideoCapture?)
Tags:
目前没有回答
相关问题 更多 >
编程相关推荐