#pragma once #include #include #include "../vp_node.h" #include "../../objects/shapes/vp_point.h" #include "../../objects/shapes/vp_line.h" namespace vp_nodes { // osd node for behaviour analysis of stop class vp_ba_stop_osd_node: public vp_node { private: // support chinese font cv::Ptr ft2; // support multi channels std::map> all_total_stop; // channel -> stop target ids std::map> all_stop_regions; // channel -> stop region std::map all_stop_count; // channel -> stop count protected: virtual std::shared_ptr handle_frame_meta(std::shared_ptr meta) override; public: vp_ba_stop_osd_node(std::string node_name, std::string font = ""); ~vp_ba_stop_osd_node(); }; }