2#ifndef GRAMODS_TRACK_OPENCVVIDEOCAPTURE
3#define GRAMODS_TRACK_OPENCVVIDEOCAPTURE
5#include <gmTrack/config.hh>
7#ifdef gramods_ENABLE_OpenCV
9#include <gmCore/VideoSource.hh>
11#include <gmCore/OFactory.hh>
12#include <gmCore/Updateable.hh>
14BEGIN_NAMESPACE_GMTRACK;
26 public gmCore::VideoSource,
38 void setVideoFile(std::filesystem::path file);
45 void setCameraId(
int id);
54 void setCameraWidth(
int W);
63 void setCameraHeight(
int W);
74 void setCameraFramerate(
int R);
85 void setCameraFourCC(std::string cc);
126 void setBackend(std::string b);
131 void update(gmCore::Updateable::clock::time_point,
size_t);
140 bool retrieve(cv::Mat &image)
override;
152 std::unique_ptr<Impl> _impl;
155END_NAMESPACE_GMTRACK;
Base type for objects in the Gramods package for standardized handling of construction,...
Definition Object.hh:42
The Updateable class defines an interface for objects that may be updated, for example each execution...
Definition Updateable.hh:18
The OpenCvVideoCapture uses OpenCVs VideoCapture to read off video image data.
Definition OpenCvVideoCapture.hh:27
std::string getDefaultKey() override
Returns the default key, in Configuration, for the Object.
Definition OpenCvVideoCapture.hh:145