Function vaal_sys::vaal_boxes

source ·
pub unsafe extern "C" fn vaal_boxes(
    context: *mut VAALContext,
    boxes: *mut VAALBox,
    max_boxes: usize,
    num_boxes: *mut usize
) -> VAALError
Expand description

Handles post-processing the model’s output and reading the bounding boxes into the user provided array of boxes, up to @param max_boxes. The function can be called with max_boxes set to 0 to cause the function to return the number of boxes detected, doing so causes the post-processing function to avoid storing the box results into @param boxes and ignoring @param max_boxes for early stopping.

@param context The VAALContext which owns the model from which we want boxes. @param boxes An array of boxes which will received the decoded results. @param max_boxes The size of @param boxes limits the maximum number of boxes. @param num_boxes The number of boxes detected.

@return VAALError

@since 1.0