pub fn draw_bboxes(image: &mut DynamicImage, bboxes: &[BBox])
Expand description

Draws bounding boxes on an image.

Example

use object_detector_rust::{bbox::BBox, utils::draw_bboxes};
use image::DynamicImage;

let mut image = DynamicImage::new_rgb8(100, 100);
let bboxes = vec![BBox::new(10, 10, 20, 20)];
draw_bboxes(&mut image, &bboxes);

This example will draw a red bounding box with top-left corner at (10, 10) and bottom-right corner at (30, 30) on a 100x100 image.