#pragma once #include #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 ft2; float mask_threshold = 0.3; bool show_bbox = true; protected: virtual std::shared_ptr handle_frame_meta(std::shared_ptr meta) override; public: vp_osd_node_v3(std::string node_name, std::string font = "", bool show_bbox = true); ~vp_osd_node_v3(); }; }