3#include <opencv2/opencv.hpp>
6#include <unordered_map>
18 const cv::Scalar &color,
int thickness);
27 const cv::Scalar &color,
int thickness);
75 const std::vector<std::tuple<float, float>> &points,
76 const cv::Scalar &color,
int thickness);
93 bool osd_rect =
true,
double font_scale_ratio = 0.04);
102 const std::unordered_map<std::string, std::vector<std::tuple<float, float>>>
104 const cv::Scalar &color = cv::Scalar(0, 255, 0),
105 double font_scale_ratio = 0.04);
113void osd(cv::Mat &img,
const std::string &fence_name,
114 const std::vector<std::tuple<float, float>> &points,
115 const cv::Scalar &color = cv::Scalar(0, 255, 0),
116 double font_scale_ratio = 0.04);
124void osd(cv::Mat &img,
const std::tuple<float, float> &position,
125 const std::string &text,
126 const cv::Scalar &color = cv::Scalar(0, 255, 0),
int font_size = 40);
std::vector< DetectionBox > DetectionBoxArray
Convenience alias for a collection of DetectionBox results.
void drawBaseInfoGeometry(cv::Mat &img, const common::object::DetectionBox &box, const cv::Scalar &color, int thickness)
Draw the base detection rectangle and label background for a single box.
void drawTrackHistoryPose(cv::Mat &img, const common::object::DetectionBox &box, int thickness)
Draw historical pose keypoints from previous frames.
void drawDepth(cv::Mat &img, const common::object::DetectionBox &box)
Overlay a depth map as a colour-mapped image blended with the input.
void make_labled_image(cv::Mat &img, const common::object::DetectionBoxArray &boxes)
Minimal OSD that paints each segmentation mask with its class_id color (no text labels).
void drawTrackTrace(cv::Mat &img, const common::object::DetectionBox &box, int font_size)
Draw the tracking trajectory trace for a tracked object.
void osd(cv::Mat &img, const common::object::DetectionBoxArray &boxes, bool osd_rect=true, double font_scale_ratio=0.04)
Full on-screen display: draws bounding boxes, masks, poses, OBBs, tracks, and text labels with automa...
void drawPoseSkeleton(cv::Mat &img, const common::object::DetectionBox &box, int thickness)
Draw pose skeleton connections between keypoints.
void drawPositionRectGeometry(cv::Mat &img, const common::object::DetectionBox &box, const cv::Scalar &color, int thickness)
Draw a dashed or solid rectangle indicating a position ROI.
void drawObbBox(cv::Mat &img, const common::object::DetectionBox &box, int thickness)
Draw an oriented bounding box as a rotated rectangle.
void drawPolygon(cv::Mat &img, const std::vector< std::tuple< float, float > > &points, const cv::Scalar &color, int thickness)
Draw a polygon from a list of (x, y) vertices.
void drawSegmentationMask(cv::Mat &img, const common::object::DetectionBox &box)
Overlay a semi-transparent segmentation mask onto the image.
Universal detection result container that holds a bounding box plus optional enriched data (pose,...