Skip to main content

compose_rgb_overlay_rgba8

Function compose_rgb_overlay_rgba8 

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

Copy RGB8 source into RGBA8 (alpha=255), then draw boxes.