Skip to content

Create widget that supports drawing of polygons. #5

Description

@ibayer

Motivation

ipyannotator currently support single object annotation with bounding boxes (bbox). However often a bounding box provides only
a very coarse localization of an instance. For tasks such as instance segmentation a sequence of (x, y) points is used to
define a polygon per object.

Polygon Annotation Widget

As a step towards supporting polygon annotations we need a widget that can display and accept user input for polygons.
Since polygon annotation can be seen as a generalization of bbox annotation a natural first step would be to use the
bbox canvas notebook 01_bbox_canvas.ipynb as blue print for a polygon widget.

Suggested steps.

  • Write code draw_polygon(...) to render a predefined polygon on an image.
  • Create a class class PolygoneCanvas(HBox, traitlets.HasTraits) that can capture user input to define a polygon.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions