bounding_box_annotation 0.0.2 copy "bounding_box_annotation: ^0.0.2" to clipboard
bounding_box_annotation: ^0.0.2 copied to clipboard

A widget to create bounding box annotation on an image, able to draw rectangles and add custom text label

A widget to create bounding box annotation on an image.

Preview #

[assets/preview.png]

Features #

  • Draw rectangles (bounding boxes) on an image.
  • Add custom text to label the annotation.
  • Get annotation details (e.g. Offset).
  • Crop image into multiple parts based on bounding boxes.

Usage #

Create a BoundingBoxAnnotation widget, and pass the required parameters.

final AnnotationController annotationController = AnnotationController();

BoundingBoxAnnotation(
    controller: annotationController,
    imageFile: imageFile
)

Create a List variable to store the annotation(s).

List<AnnottaionDetails>> annotationList = [];

Get annotation details:

final AnnotationController annotationController = AnnotationController();

List<AnnottaionDetails>> annotationList = await annotationController.getData();

Clear all annotation(s):

final AnnotationController annotationController = AnnotationController();

annotationController.clear();
1
likes
0
points
64
downloads

Publisher

unverified uploader

Weekly Downloads

A widget to create bounding box annotation on an image, able to draw rectangles and add custom text label

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_drawing_board, freezed, freezed_annotation, image, intl, json_annotation, path_provider

More

Packages that depend on bounding_box_annotation