0 purchases
bounding box annotation
A widget to create bounding box annotation on an image.
Preview #
Live Demo :
Click Here
Features #
Draw rectangles (bounding boxes) on an image.
Add / edit custom text to label the annotation.
Get annotation details (e.g. Offset).
Crop image into multiple parts based on bounding boxes.
Delete annotation.
Usage #
Create a BoundingBoxAnnotation widget, and pass the required parameters.
final AnnotationController annotationController = AnnotationController();
BoundingBoxAnnotation(
controller: annotationController,
imageFile: imageFile
)
copied to clipboard
Customize annotation styles.
BoundingBoxAnnotation(
controller: annotationController,
imageFile: imageFile
color: Colors.blue,
strokeWidth: 5.0,
)
copied to clipboard
Create a List variable to store the annotation(s).
List<AnnottaionDetails>> annotationList = [];
copied to clipboard
Get annotation details:
final AnnotationController annotationController = AnnotationController();
List<AnnottaionDetails>> annotationList = await annotationController.getData();
copied to clipboard
Clear all annotation(s):
final AnnotationController annotationController = AnnotationController();
annotationController.clear();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.