我可以在同一个文件上使用 .read 的次数有限制吗?
is there a limit on how many times I can use .read on the same file?
VideoCapture capVideo;
capVideo.read(imgFrame2);
对同一文件使用 .read 的次数是否有限制?
没有限制。每次调用读取函数时,都会返回新帧,除非出现错误(视频文件结束、从相机捕获图像时出错等)。
VideoCapture capVideo;
capVideo.read(imgFrame2);
对同一文件使用 .read 的次数是否有限制?
没有限制。每次调用读取函数时,都会返回新帧,除非出现错误(视频文件结束、从相机捕获图像时出错等)。