paramdefine cv2.VideoCapture.get(0)视频文件的当前位置(播放)以毫秒为单位 cv2.VideoCapture.get(1)...
CAP_PROP_FRAME_HEIGHT, self.size[0]) if cap_width != self.size[1]: self.cap.set(cv2.CAP_PROP_FRAME_WIDTH, self.size[1]) cap_fps = self.cap.get(cv2.CAP_PROP_FPS) if cap_fps != fps: self.cap.set(cv2.CAP_PROP_FPS, fps) if sync: raise ValueError("sync not supported") ...
edited System Information OpenCV Python version: 4.8.074 OS: Microsoft Windows 10 Enterprise , version 10.0.19045 Python version: 3.11.4 Detailed description This mp4 video (attached below) has a length of 24:22mins, and a frame rate of 14.9 fps when checking the properties of the file in...