对同一文件使用 .read 的次数是否有限制?

is there a limit on how many times I can use .read on the same file?

本文关键字:是否 有限制 read 文件      更新时间:2023-10-16
VideoCapture capVideo;
capVideo.read(imgFrame2);

对同一文件使用 .read 的次数是否有限制?

没有限制。每次调用读取函数时,都会返回新帧,除非出现错误(视频文件结束,从相机捕获图像时出错等(。