3 #include "videosource.h"
33 OpenCVSource(
const std::string& filename,
bool gray=
true);
62 cv::VideoCapture* videocapture_;
The VideoSource class is the abstract base class for video input.
Definition: videosource.h:17
cv::Mat getImage()
get new image
The OpenCVSource class uses OpenCV to read images from cameras or files.
Definition: opencvsource.h:17
unsigned int getHeight()
get image height
Definition: opencvsource.h:52
OpenCVSource(unsigned int camId=0, bool gray=true)
OpenCVSource constructor. Initialize the camera camId.
unsigned int getCurrentFrameNr()
get frame index. Upon camera initilaization, the counter is set to 0
Definition: opencvsource.h:58
unsigned int getWidth()
get image width
Definition: opencvsource.h:46