24 #include <opencv2/videoio.hpp>
26 #ifndef CAPTUREPLUGINFILE_H
27 # define CAPTUREPLUGINFILE_H
36 # ifdef ALVAR_Capture_Plugin_File_BUILD
37 # define ALVAR_CAPTURE_PLUGIN_FILE_EXPORT __declspec(dllexport)
39 # define ALVAR_CAPTURE_PLUGIN_FILE_EXPORT __declspec(dllimport)
42 # define ALVAR_CAPTURE_PLUGIN_FILE_EXPORT
48 # include <opencv2/highgui.hpp>
81 cv::VideoCapture mVideoCapture;
106 extern "C" ALVAR_CAPTURE_PLUGIN_FILE_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 File plugin.
bool Serialize(Serialization *serialization)
Performs serialization of the class members and configuration.
cv::Mat captureImage()
Capture one image from the camera.
void stop()
Stops the camera capture.
bool start()
Starts the camera capture.
bool showSettingsDialog()
Show the settings dialog of the camera.
~CaptureFile()
Destructor.
std::string SerializeId()
The identification of the class for serialization.
CaptureFile(const CaptureDevice captureDevice)
Constructor.
Implementation of CapturePlugin interface for File plugin.
Capture * createCapture(const CaptureDevice captureDevice)
Create Capture class. Transfers onwership to the caller.
CaptureDeviceVector enumerateDevices()
Enumerate capture devices currently available.
CapturePluginFile(const std::string &captureType)
Constructor.
~CapturePluginFile()
Destructor.