3 #include <opencv2/core/types.hpp>
29 Detection(
float conf,
int id,
const std::string &name,
const cv::Rect &rect) :
45 Detection(
float conf,
int id,
const std::string &name,
const cv::Rect &rect,
const std::vector<cv::Point>& shape) :
63 std::map<std::string, std::string> properties;
A structure to represent the detection details.
Definition: Detection.h:20
Detection(float conf, int id, const std::string &name, const cv::Rect &rect, const std::vector< cv::Point > &shape)
Constructor for Detection with extended parameters including shape points.
Definition: Detection.h:45
std::vector< cv::Point > shapePoints
Shape points of the detection, if available.
Definition: Detection.h:62
int classId
Class ID of the detection.
Definition: Detection.h:59
Detection(float conf, int id, const std::string &name, const cv::Rect &rect)
Constructor for Detection with basic parameters.
Definition: Detection.h:29
std::string className
Class name of the detection.
Definition: Detection.h:60
cv::Rect boundingRect
Bounding rectangle of the detection.
Definition: Detection.h:61
float confidence
Confidence level of the detection.
Definition: Detection.h:58
Detection()=default
Default constructor for Detection.