#[repr(C)]pub struct VAALBox {
pub xmin: f32,
pub ymin: f32,
pub xmax: f32,
pub ymax: f32,
pub score: f32,
pub label: c_int,
}Expand description
Common bounding box structure used by all decoders. The box is defined by the minimum and maximum coordinates of the x,y points as normalized values. Normalized values are in the range 0..1 and can be multiplied by the size of an image to de-normalize back to actual pixel locations.
The label is an index which can be used to access the textual label from the model or a labels file.
The score’s definition is model-specific but generally it is a sigmoid processed value.
Fields§
§xmin: f32left-most normalized coordinate of the bounding box.
ymin: f32top-most normalized coordinate of the bounding box.
xmax: f32right-most normalized coordinate of the bounding box.
ymax: f32bottom-most normalized coordinate of the bounding box.
score: f32model-specific score for this detection, higher implies more confidence.
label: c_intlabel index for this detection, text representation can be retrived using @ref VAALContext::vaal_label()