Visual Servoing Platform
version 3.6.1 under development (2024-09-10)
|
#include <visp3/detection/vpDetectorDNNOpenCV.h>
Public Member Functions | |
DetectedFeatures2D (double u_min, double u_max, double v_min, double v_max, unsigned int cls, double score, const std::optional< std::string > &classname) | |
vpRect | getBoundingBox () const |
double | getConfidenceScore () const |
unsigned int | getClassId () const |
std::optional< std::string > | getClassName () const |
template<typename Type > | |
void | display (const vpImage< Type > &img, const vpColor &color=vpColor::blue, unsigned int thickness=1) const |
Public Attributes | |
friend | vpDetectorDNNOpenCV |
Protected Attributes | |
vpRect | m_bbox |
double | m_score |
unsigned int | m_cls |
std::optional< std::string > | m_classname |
Structure containing the bounding box, expressed in pixels, confidence and class information about an object detected in a image.
Definition at line 117 of file vpDetectorDNNOpenCV.h.
|
inlineexplicit |
Construct a new Detected Features 2 D object.
u_min | The left coordinate of the bounding box, expressed in pixel. |
u_max | The right coordinate of the bounding box, expressed in pixel. |
v_min | The top coordinate of the bounding box, expressed in pixel. |
v_max | The bottom coordinate of the bounding box, expressed in pixel. |
cls | The class ID |
score | The confidence in the detection. |
classname | The class name, if the class names were given to the vpDetectorDNNOpenCV::NetConfig used to configure the vpDetectorDNNOpenCV object. |
Definition at line 136 of file vpDetectorDNNOpenCV.h.
|
inline |
Display the bbox and score of the detected object in an image.
[in] | img | : Image used as background. |
[in] | color | : Color used to draw the CAD model. |
[in] | thickness | : Thickness used to draw the CAD model. |
Definition at line 606 of file vpDetectorDNNOpenCV.h.
References vpDisplay::displayRectangle(), vpDisplay::displayText(), vpRect::getTopRight(), m_bbox, m_classname, m_cls, and m_score.
|
inline |
Return the bounding box of the detected object.
Definition at line 156 of file vpDetectorDNNOpenCV.h.
Referenced by vpDetectorDNNOpenCV::filterDetectionMultiClassInput().
|
inline |
Return the class ID of the detected object.
Definition at line 164 of file vpDetectorDNNOpenCV.h.
Referenced by vpDetectorDNNOpenCV::filterDetectionMultiClassInput().
|
inline |
Return the class name of the detected object.
Definition at line 168 of file vpDetectorDNNOpenCV.h.
|
inline |
Return the confidence score of the detected object, a value between 0 and 1.
Definition at line 160 of file vpDetectorDNNOpenCV.h.
|
protected |
The bounding box of the detected object.
Definition at line 120 of file vpDetectorDNNOpenCV.h.
Referenced by display().
|
protected |
The class name, if the class names were given to the vpDetectorDNNOpenCV::NetConfig used to configure the vpDetectorDNNOpenCV object.
Definition at line 123 of file vpDetectorDNNOpenCV.h.
Referenced by display().
|
protected |
|
protected |
The confidence in the detection.
Definition at line 121 of file vpDetectorDNNOpenCV.h.
Referenced by display().
friend vpDetectorDNNOpenCV::DetectedFeatures2D::vpDetectorDNNOpenCV |
Definition at line 173 of file vpDetectorDNNOpenCV.h.