import cv2 as cv
import numpy
class VideoPlayer:
class_name = 'Video'
def __init__(self,video_path):
self.path = video_path
self.video = []
def getPath(self):
return self.path
def get_video_frame(self):
cap = cv.VideoCapture(self.path)
self.video_width = cap.get(3)
self.video_height = cap.
python-opencv 播放本地视频
最新推荐文章于 2023-04-16 23:11:02 发布