Function validate_coco_bbox
Source pub fn validate_coco_bbox(
bbox: &[f64; 4],
image_width: u32,
image_height: u32,
) -> Result<(), Error>
Expand description
Validate that a COCO bounding box is within image bounds.
§Arguments
bbox - COCO bounding box [x, y, w, h] in pixels
image_width - Image width in pixels
image_height - Image height in pixels
§Returns
Ok(()) if valid, Err with description if invalid