Spoofing Detection Engine  1.0
Public Member Functions | Public Attributes | List of all members
core::Detection Struct Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Detection() [1/2]

core::Detection::Detection ( float  conf,
int  id,
const std::string &  name,
const cv::Rect &  rect 
)
inline

Constructor for Detection with basic parameters.

Parameters
confThe confidence of the detection.
idThe class ID of the detection.
nameThe class name of the detection.
rectThe bounding rectangle of the detection.

◆ Detection() [2/2]

core::Detection::Detection ( float  conf,
int  id,
const std::string &  name,
const cv::Rect &  rect,
const std::vector< cv::Point > &  shape 
)
inline

Constructor for Detection with extended parameters including shape points.

Parameters
confThe confidence of the detection.
idThe class ID of the detection.
nameThe class name of the detection.
rectThe bounding rectangle of the detection.
shapeThe shape points of the detection.

The documentation for this struct was generated from the following file: