Hi ! I am trying to use BoxAnnotator to correct or validate pre-annotations.
So I tried this little code:
from ipyannotations.images import BoxAnnotator
from ipyannotations.images.canvases.shapes import BoundingBox
widget = BoxAnnotator(options=["test"])
widget.display("img.jpg")
widget.canvas.draw_box(BoundingBox(xyxy=[10, 10, 40, 40], label="test"))
widget
The bbox appear but after overing the canvas the annotations disappear.
Is it the correct way to use it ?
Thank you