pub fn crop_bbox(image: &DynamicImage, bbox: &BBox) -> DynamicImage
Expand description

Crops an image to the dimensions specified in the bounding box

Arguments

  • image - The image to crop
  • bbox - The bounding box defining the region to crop

Returns

The cropped image