使用python-opencv读取视频,计算视频总帧数及FPS的实现 如下所示:1、计算总帧数importosimportcv2video_cap=cv2.VideoCapture('ffmpeg_test.avi')frame_count=0all_frames= FPS