📜  python opencv 帧数 - Python 代码示例

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

代码示例1
import cv2

cap = cv2.VideoCapture("video.mp4")
length = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
print( length )