#ifndef IMAGEDRAWELEMENT_H
|
#define IMAGEDRAWELEMENT_H
|
#include <basic/pipe_element/ImageFactoryElement.h>
|
#include <mutex>
|
|
class ImageDrawElement : public ImageFactoryElement
|
{
|
public:
|
ImageDrawElement();
|
void setRects(const std::vector<cv::Rect2f> &value);
|
|
private:
|
std::mutex rectsMtx;
|
std::vector<cv::Rect2f> rects;
|
std::vector<cv::Rect2f> rectsBuffer;
|
bool rectsUpdated;
|
virtual void processImage(cv::Mat& image);
|
};
|
|
#endif // IMAGEDRAWELEMENT_H
|