Skip to content

Loading pre-annotations bounding boxes on BoxAnnotator #44

Description

@yann-rdgz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions