|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
21 #ifndef YARP_OPENCV_GRABBER_DEVICE_OPENCVGRABBER_H
22 #define YARP_OPENCV_GRABBER_DEVICE_OPENCVGRABBER_H
36 #include <opencv2/highgui/highgui.hpp>
76 bool close()
override;
88 inline int width()
const override {
return m_w; }
126 #endif // YARP_OPENCV_GRABBER_DEVICE_OPENCVGRABBER_H
A base class for nested structures that can be searched.
cv::VideoCapture m_cap
OpenCV image capture object.
Interface implemented by all device drivers.
virtual ~OpenCVGrabber()
Destroy an OpenCV image grabber.
size_t m_h
Height of the images a grabber produces.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool close() override
Close a grabber.
bool getImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
Get an rgb image from the frame grabber, if required demosaicking/color reconstruction is applied.
int width() const override
Get the width of images a grabber produces.
Read a YARP-format image from a device.
virtual bool sendImage(const cv::Mat &frame, yarp::sig::ImageOf< yarp::sig::PixelRgb > &image)
Read an image from the grabber.
OpenCVGrabber()
Create an OpenCV image grabber.
size_t m_w
Width of the images a grabber produces.
define common interfaces to discover remote camera capabilities
An abstraction for a time stamp and/or sequence number.
opencv_grabber: An image frame grabber device using OpenCV to capture images from cameras and AVI fil...
yarp::os::Property m_config
Saved copy of the device configuration.
yarp::os::Stamp getLastInputStamp() override
Implements the IPreciselyTimed interface.
bool fromFile
Whether reading from file or camera.
bool m_loop
Whether to loop or not.
int height() const override
Get the height of images a grabber produces.
A class for storing options and configuration information.
yarp::os::Stamp m_laststamp