📌  相关文章
📜  NameError: name 'CAP_PROP_FPS' is not defined - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:16.893000             🧑  作者: Mango

代码示例1
videoCapture = cv2.VideoCapture(file_path)
fps = videoCapture.get(cv2.CAP_PROP_FPS)
size = (int(videoCapture.get(cv2.CAP_PROP_FRAME_WIDTH)),
        int(videoCapture.get(cv2.CAP_PROP_FRAME_HEIGHT)))