first commit

This commit is contained in:
陈赣
2026-06-03 12:43:14 +08:00
commit ba76cfae28
608 changed files with 120791 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#pragma once
#include <string>
#include "../vp_node.h"
namespace vp_nodes {
class vp_seg_osd_node: public vp_node
{
private:
/* data */
int gap = 60;
// classs names of semantic segmentation
std::vector<std::string> classes;
// colors of semantic segmentation
std::vector<cv::Vec3b> colors;
void colorizeSegmentation(const cv::Mat &score, cv::Mat &segm);
void showLegend(cv::Mat& board);
protected:
virtual std::shared_ptr<vp_objects::vp_meta> handle_frame_meta(std::shared_ptr<vp_objects::vp_frame_meta> meta) override;
public:
vp_seg_osd_node(std::string node_name, std::string classes_file = "", std::string colors_file = "");
~vp_seg_osd_node();
};
}