![]() |
Visual Servoing Platform version 3.7.0
|
#include <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 127 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 146 of file vpDetectorDNNOpenCV.h.
References m_bbox, m_classname, m_cls, and m_score.
|
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 616 of file vpDetectorDNNOpenCV.h.
References display(), vpDisplay::displayRectangle(), vpDisplay::displayText(), m_bbox, m_classname, m_cls, and m_score.
Referenced by display().
|
inline |
Return the bounding box of the detected object.
Definition at line 166 of file vpDetectorDNNOpenCV.h.
References m_bbox.
Referenced by vpDetectorDNNOpenCV::filterDetectionMultiClassInput().
|
inline |
Return the class ID of the detected object.
Definition at line 174 of file vpDetectorDNNOpenCV.h.
References m_cls.
Referenced by vpDetectorDNNOpenCV::filterDetectionMultiClassInput().
|
inline |
Return the class name of the detected object.
Definition at line 178 of file vpDetectorDNNOpenCV.h.
References m_classname.
|
inline |
Return the confidence score of the detected object, a value between 0 and 1.
Definition at line 170 of file vpDetectorDNNOpenCV.h.
References m_score.
|
protected |
The bounding box of the detected object.
Definition at line 130 of file vpDetectorDNNOpenCV.h.
Referenced by DetectedFeatures2D(), display(), and getBoundingBox().
|
protected |
The class name, if the class names were given to the vpDetectorDNNOpenCV::NetConfig used to configure the vpDetectorDNNOpenCV object.
Definition at line 133 of file vpDetectorDNNOpenCV.h.
Referenced by DetectedFeatures2D(), display(), and getClassName().
|
protected |
The class ID.
Definition at line 132 of file vpDetectorDNNOpenCV.h.
Referenced by DetectedFeatures2D(), display(), and getClassId().
|
protected |
The confidence in the detection.
Definition at line 131 of file vpDetectorDNNOpenCV.h.
Referenced by DetectedFeatures2D(), display(), and getConfidenceScore().
| friend vpDetectorDNNOpenCV::DetectedFeatures2D::vpDetectorDNNOpenCV |
Definition at line 183 of file vpDetectorDNNOpenCV.h.