first commit
This commit is contained in:
24
nodes/osd/vp_osd_node_v3.h
Normal file
24
nodes/osd/vp_osd_node_v3.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <opencv2/freetype.hpp>
|
||||
|
||||
#include "../vp_node.h"
|
||||
|
||||
|
||||
namespace vp_nodes {
|
||||
// on screen display(short as osd) node.
|
||||
// another version for vp_frame_target display, display mask area for image segmentation.
|
||||
class vp_osd_node_v3: public vp_node
|
||||
{
|
||||
private:
|
||||
// support chinese font
|
||||
cv::Ptr<cv::freetype::FreeType2> ft2;
|
||||
float mask_threshold = 0.3;
|
||||
bool show_bbox = true;
|
||||
protected:
|
||||
virtual std::shared_ptr<vp_objects::vp_meta> handle_frame_meta(std::shared_ptr<vp_objects::vp_frame_meta> meta) override;
|
||||
public:
|
||||
vp_osd_node_v3(std::string node_name, std::string font = "", bool show_bbox = true);
|
||||
~vp_osd_node_v3();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user