Roboflow supports segmentation to train models that predict complex shapes, and now you can use polygon annotations with Object Detection, Instance Segmentation, and Semantic Segmentation projects.

Polygons give the training pipeline more specific information about the data you're using train a model which can provide a big lift in performance without having to change the underlying architecture and without having to pay the speed penalty that typically comes along with segmentation models.

Polygon annotations allow for tighter definitions of the object itself when you're labeling, which can lead to increased training performance and results, and also improve data augmentation.

It is best to avoid using polygons when you want to optimize for labeling costs and speed. Annotating with polygons takes more time and bounding boxes are usually sufficient to build an initial prototype or model for assisted labeling.

Once you have an initial model working, you can go back and improve performance later with polygons, by relabeling your images, if necessary.

How to Draw Polygons in Roboflow

We have a guide in our Documentation, and in our Knowledge Base, to assist with locating all of the available options for our labeling interface.

Quick tips for labeling with polygons in Roboflow

Use the Polygon Tool to add polygon annotations (shortcut key: p) by clicking to add an initial starting point, then continue clicking to add more stationary points around the object, and double clicking or clicking the original vertex to close the polygon.

Editing and removing vertices

There are differing approaches to labeling with polygons. One method is to trace the object by moving your cursor around the edges while clicking often. This can be a time consuming but accurate approach.

We recommend clicking around the object to ensure it's within your polygon annotation, then click the annotation line to add another vertex which you can move to fit the outline of the object. You can repeat this wherever needed, as many times as you need.

Adding vertices to your polygon

Don't forget to post in our Community Forum or in-app chat if you have questions, want to show off your projects in the Show & Tell section of the Forum, or receive a feature in our blog and newsletter!