24#include <opencv2/imgproc.hpp>
25#include <opencv2/videoio.hpp>
31namespace fs = std::filesystem;
44 bool getNext(UMat &destination);
46 bool getImage(
int index, UMat &destination);
47 bool getImage(
int index, Mat &destination);
48 bool open(
const String &path,
int apiPreference = CAP_ANY)
override;
This class is intended to abstract the opening of a video, it can load image sequence and video with ...
Definition: videoreader.h:34
bool isSequence()
Is the file is an image sequence.
Definition: videoreader.cpp:164
unsigned int getImageCount() const
Get the total number of images in the video.
Definition: videoreader.cpp:156
bool getImage(int index, UMat &destination)
Get the image at selected index, always one channel.
Definition: videoreader.cpp:113
bool getNext(UMat &destination)
Get the next image, always one channel.
Definition: videoreader.cpp:82