我正在尝试为一个读入VideoCapture对象并将其作为双精度值返回FPS rate的openCV函数编写gtest。#pragma once#include <iostream>
using namespacecv;
This is my Header file for the Class Calculate FPS that has the
我正在使用openCV将视频分割成多个帧。为此,我需要fps和时长。通过cvGetCaptureProperty查询时,这两个值都返回1。我使用AVURLAsset来获取fps和时长,但当我将其与openCV结合使用时,我只能得到部分视频。它看起来像是丢失了帧。这是我现在的代码: frameCounter++;
if (frameCoun