17#include <opencv2/core/mat.hpp>
18#include <opencv2/imgproc.hpp>
29using yarp::sig::PixelRgb;
76 if (
image.width() == 0 ||
image.height() == 0) {
109 cv::cvtColor(frame, frame, cv::COLOR_RGB2BGR);
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
bool putImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
Write an image to the device.
bool close() override
Close the DeviceDriver.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
Interface implemented by all device drivers.
Read a YARP-format image to a device.
A mini-server for performing network communication in the background.
void release(void *handle) override
Return control to YARP of an object previously taken control of with the acquire() method.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A class for storing options and configuration information.
A base class for nested structures that can be searched.
A single value (typically within a Bottle).
#define yCInfo(component,...)
#define yCError(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.