24 #include <opencv2/videoio.hpp>
26 #ifndef CAPTUREPLUGINHIGHGUI_H
27 # define CAPTUREPLUGINHIGHGUI_H
36 # ifdef ALVAR_Capture_Plugin_Highgui_BUILD
37 # define ALVAR_CAPTURE_PLUGIN_HIGHGUI_EXPORT __declspec(dllexport)
39 # define ALVAR_CAPTURE_PLUGIN_HIGHGUI_EXPORT __declspec(dllimport)
42 # define ALVAR_CAPTURE_PLUGIN_HIGHGUI_EXPORT
47 # include <opencv2/videoio.hpp>
48 # include <opencv2/highgui.hpp>
73 void setResolution(
const unsigned long xResolution,
const unsigned long yResolution);
82 cv::VideoCapture mVideoCapture;
107 extern "C" ALVAR_CAPTURE_PLUGIN_HIGHGUI_EXPORT
void
This file implements a capture interface.
This file implements a capture plugin interface.
CaptureDevice holder for camera information.
Capture interface that plugins must implement.
CapturePlugin interface that plugins must implement.
std::vector< CaptureDevice > CaptureDeviceVector
Vector of CaptureDevices.
Class for serializing class content to/from file or std::iostream.
Implementation of Capture interface for Highgui plugin.
~CaptureHighgui()
Destructor.
bool Serialize(Serialization *serialization)
Performs serialization of the class members and configuration.
CaptureHighgui(const CaptureDevice captureDevice)
Constructor.
cv::Mat captureImage()
Capture one image from the camera.
void setResolution(const unsigned long xResolution, const unsigned long yResolution)
Set the resolution.
void stop()
Stops the camera capture.
bool start()
Starts the camera capture.
bool showSettingsDialog()
Show the settings dialog of the camera.
std::string SerializeId()
The identification of the class for serialization.
Implementation of CapturePlugin interface for Highgui plugin.
Capture * createCapture(const CaptureDevice captureDevice)
Create Capture class. Transfers onwership to the caller.
CapturePluginHighgui(const std::string &captureType)
Constructor.
CaptureDeviceVector enumerateDevices()
Enumerate capture devices currently available.
~CapturePluginHighgui()
Destructor.