Search code examples
c++opencvvideo-capturemat

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


VideoCapture capVideo;
capVideo.read(imgFrame2);

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


Solution

  • There's no limit. Each time you call read function, new frame is returned unless there's an error (end of video file, error while capturing image from the camera etc).