8#ifndef YARP_OPENCV_GRABBER_DEVICE_OPENCVGRABBER_H
9#define YARP_OPENCV_GRABBER_DEVICE_OPENCVGRABBER_H
18#include <opencv2/videoio.hpp>
46 bool close()
override;
This class is the parameters parser for class OpenCVGrabber.
opencv_grabber: An image frame grabber device using OpenCV to capture images from cameras and AVI fil...
yarp::os::Stamp getLastInputStamp() override
Implements the IPreciselyTimed interface.
int height() const override
Return the height of each frame.
bool fromFile
Whether reading from file or camera.
int width() const override
Return the width of each frame.
yarp::os::Property m_config
Saved copy of the device configuration.
bool getImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
Read an image from the grabber.
bool close() override
Close a grabber.
cv::VideoCapture m_cap
OpenCV image capture object.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::os::Stamp m_laststamp
Interface implemented by all device drivers.
A class for storing options and configuration information.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.