Skip to main content

draw_boxes_rgba8

Function draw_boxes_rgba8 

Source
pub fn draw_boxes_rgba8(
    width: u32,
    height: u32,
    rgba: &mut [u8],
    detections: &[Detection],
    n: usize,
    color: [u8; 4],
    thickness: u32,
) -> Result<usize, VisionError>
Expand description

Draw axis-aligned box outlines onto an RGBA8 buffer (stride = w * 4). thickness in pixels (clamped 1…8). Returns number of boxes drawn.