YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
OpenCVWriter.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef YARP_OPENCV_DEVICE_OPENCVWRITER_H
7#define YARP_OPENCV_DEVICE_OPENCVWRITER_H
8
9#include <yarp/os/Property.h>
12#include <yarp/os/Stamp.h>
15
16#include <opencv2/videoio.hpp>
17
29{
30public:
31
33 virtual ~OpenCVWriter() {}
34
35
36 bool open(yarp::os::Searchable & config) override;
37 bool close() override;
39
40protected:
41 cv::VideoWriter m_writer;
42 bool m_isInitialized =false;
43};
44
45#endif // YARP_OPENCV_DEVICE_OPENCVWRITER_H
This class is the parameters parser for class OpenCVWriter.
OpenCVWriter: A device which receives images and writes a video file to disk using openCV
bool putImage(yarp::sig::ImageOf< yarp::sig::PixelRgb > &image) override
Write an image to the device.
bool close() override
Close the DeviceDriver.
virtual ~OpenCVWriter()
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool m_isInitialized
cv::VideoWriter m_writer
Interface implemented by all device drivers.
Read a YARP-format image to a device.
A base class for nested structures that can be searched.
Definition Searchable.h:31
Typed image class.
Definition Image.h:605