first commit
This commit is contained in:
23
nodes/osd/vp_text_osd_node.h
Normal file
23
nodes/osd/vp_text_osd_node.h
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#pragma once
|
||||
#include <opencv2/imgproc.hpp>
|
||||
#include <opencv2/freetype.hpp>
|
||||
|
||||
#include "../vp_node.h"
|
||||
|
||||
namespace vp_nodes {
|
||||
// on screen display(short as osd) node.
|
||||
// mainly used to display vp_frame_text_target on frame.
|
||||
class vp_text_osd_node: public vp_node
|
||||
{
|
||||
private:
|
||||
// support chinese font
|
||||
cv::Ptr<cv::freetype::FreeType2> ft2;
|
||||
protected:
|
||||
virtual std::shared_ptr<vp_objects::vp_meta> handle_frame_meta(std::shared_ptr<vp_objects::vp_frame_meta> meta) override;
|
||||
public:
|
||||
vp_text_osd_node(std::string node_name, std::string font);
|
||||
~vp_text_osd_node();
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user