pub fn generate_annotations(
    annotated_image_set: &mut dyn AnnotatedImageSet,
    count: usize,
    max_count: Option<usize>,
    width: u32,
    height: u32
)
Expand description

Generates random annotations for the provided annotated image set.

Arguments

  • annotated_image_set - The set of annotated images to add the annotations to.
  • count - The number of annotations to generate for each annotated image.
  • max_count - An optional maximum number of annotations to generate for all annotated images.
  • width - The width of the generated bounding boxes.
  • height - The height of the generated bounding boxes.