55 : mCaptureDevice(captureDevice), mXResolution(0), mYResolution(0), mIsCapturing(false)
72 return mCaptureDevice;
109 setResolution(
const unsigned long xResolution,
const unsigned long yResolution)
143 if (!isCapturing()) {
149 serialization << (*this);
165 if (!isCapturing()) {
171 serialization >> (*this);
199 unsigned long mXResolution;
200 unsigned long mYResolution;
This file defines library export definitions, version numbers and build information.
This file implements a capture device to hold camera information.
This file implements generic utility functions and a serialization interface.
CaptureDevice holder for camera information.
Capture interface that plugins must implement.
virtual void stop()=0
Stops the camera capture.
virtual ~Capture()
Destructor.
Capture(const CaptureDevice captureDevice)
Constructor.
virtual bool loadSettings(std::string filename)
Load camera settings from a file.
virtual std::string SerializeId()=0
The identification of the class for serialization.
virtual void setResolution(const unsigned long xResolution, const unsigned long yResolution)
Set the resolution.
virtual bool showSettingsDialog()=0
Show the settings dialog of the camera.
virtual bool Serialize(Serialization *serialization)=0
Performs serialization of the class members and configuration.
unsigned long xResolution()
The resolution along the x axis (horizontal).
CaptureDevice captureDevice()
The camera information associated to this capture object.
virtual bool start()=0
Starts the camera capture.
bool isCapturing()
Test if the camera was properly initialized.
virtual cv::Mat captureImage()=0
Capture one image from the camera.
unsigned long yResolution()
The resolution along the y axis (vertical).
virtual bool saveSettings(std::string filename)
Save camera settings to a file.
Class for serializing class content to/from file or std::iostream.