Detection structure. Stores a detected bounding box within a source image rect.
More...
#include <Detection.h>
Detection structure. Stores a detected bounding box within a source image rect.
fsdk::Detection::Detection |
( |
FloatRect |
rect, |
|
|
float |
score = 1.f |
|
) |
| |
|
inlinenoexcept |
Special constructor based on raw rect and score only.
- Parameters
-
[in] | rect | raw detection rect. |
[in] | score | detection score. |
- Note
- * The input rect will be handled not only as a raw detection rect but as a bounding rect also.
fsdk::Detection::Detection |
( |
FloatRect |
rect, |
|
|
int |
width, |
|
|
int |
height, |
|
|
float |
score = 1.f |
|
) |
| |
|
inlinenoexcept |
Constructor base on the raw rect, bounding width and height.
- Parameters
-
[in] | rect | raw detection rect. |
[in] | width | bounding source image rect width. |
[in] | height | bounding source image rect height. |
[in] | score | detection score. |
fsdk::Detection::Detection |
( |
FloatRect |
rect, |
|
|
Rect |
imageRect, |
|
|
float |
score = 1.f |
|
) |
| |
|
inlinenoexcept |
Constructor base on the raw rect, bounding width and height.
- Parameters
-
[in] | rect | raw detection rect. |
[in] | rect | bounding source image rect. |
FloatRect fsdk::Detection::getRawRect |
( |
| ) |
const |
|
inlinenoexcept |
Returns a raw detection bounding box.
- Note
- The raw detection area could be beyond the frame borders.
Rect fsdk::Detection::getRect |
( |
| ) |
const |
|
inlinenoexcept |
Returns a detection rect.
- Note
- This detection rect is alwais bounded by the frame borders.
bool fsdk::Detection::isValid |
( |
| ) |
const |
|
inlinenoexcept |
Checks whether a detection is valid.
A detection is considered valid if it has a valid rect and score in [0..1] range.
- Returns
- true if detection is valid, false otherwise.
Sets a detection rect.
- Note
- This method usefull for debug purpose. Otherwise it is not needed to change the internal rect in the Detection object.
void fsdk::Detection::setScore |
( |
float |
score | ) |
|
|
inlinenoexcept |
Sets a detection score.
- Note
- This method usefull for debug purpose. Otherwise it is not needed to change the internal score in the Detection object.
The documentation for this struct was generated from the following file: