I-Seed drone's onboard service  0.0.9
Public Member Functions | List of all members
bounding_box Class Reference

Reading bounding boxes objects from inference output. More...

#include <bounding_box.h>

Public Member Functions

 bounding_box (const float *p, std::size_t x_shift, std::size_t y_shift)
 Read bounding box from memory. More...
 
 ~bounding_box ()=default
 
bool intersect (const bounding_box &) const
 Two boxes intersection. More...
 
float confidence () const
 Model confidence about detected object. More...
 
void print () const
 Print to console bounding box information. More...
 
cv::Scalar class_color () const
 Assigned color of a class of a detected object. More...
 
(x,y) coordinates of middle of bounding box
float mid_x () const
 
float mid_y () const
 
min/max of the bounding box
cv::Point pmin () const
 
cv::Point pmax () const
 

Detailed Description

Reading bounding boxes objects from inference output.

Constructor & Destructor Documentation

◆ bounding_box()

bounding_box::bounding_box ( const float *  p,
std::size_t  x_shift,
std::size_t  y_shift 
)

Read bounding box from memory.

Parameters
[in]pPointer to the memory
[in]x_shiftTile shift by X-axis
[in]y_shiftTile shift by Y-axis

◆ ~bounding_box()

bounding_box::~bounding_box ( )
default

Member Function Documentation

◆ intersect()

auto bounding_box::intersect ( const bounding_box other) const

Two boxes intersection.

Returns
true Boxes intersect each other

◆ confidence()

float bounding_box::confidence ( ) const
inline

Model confidence about detected object.

Returns
1.0 The maximum confidence about detected object class
0.0 The minimum confidence about detected object class

◆ print()

void bounding_box::print ( ) const

Print to console bounding box information.

◆ mid_x()

float bounding_box::mid_x ( ) const
inline

◆ mid_y()

float bounding_box::mid_y ( ) const
inline

◆ pmin()

auto bounding_box::pmin ( ) const

◆ pmax()

auto bounding_box::pmax ( ) const

◆ class_color()

auto bounding_box::class_color ( ) const

Assigned color of a class of a detected object.


The documentation for this class was generated from the following files: