![]() |
Spoofing Detection Engine
1.0
|
A structure to represent the detection details. More...
#include <Detection.h>
Public Member Functions | |
| Detection (float conf, int id, const std::string &name, const cv::Rect &rect) | |
| Constructor for Detection with basic parameters. More... | |
| 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. More... | |
| Detection ()=default | |
| Default constructor for Detection. | |
Public Attributes | |
| float | confidence = 0.0 |
| Confidence level of the detection. | |
| int | classId = -1 |
| Class ID of the detection. | |
| std::string | className |
| Class name of the detection. | |
| cv::Rect | boundingRect |
| Bounding rectangle of the detection. | |
| std::vector< cv::Point > | shapePoints |
| Shape points of the detection, if available. | |
| std::vector< float > | featureVector |
| Optional feature vector for recognition. | |
| std::map< std::string, std::string > | properties |
A structure to represent the detection details.
This structure encapsulates details of a detected object, including its confidence, class ID, class name, bounding rectangle, and optionally, the shape points.
|
inline |
Constructor for Detection with basic parameters.
| conf | The confidence of the detection. |
| id | The class ID of the detection. |
| name | The class name of the detection. |
| rect | The bounding rectangle of the detection. |
|
inline |
Constructor for Detection with extended parameters including shape points.
| conf | The confidence of the detection. |
| id | The class ID of the detection. |
| name | The class name of the detection. |
| rect | The bounding rectangle of the detection. |
| shape | The shape points of the detection. |