FAQ

Annotation

Boxes, polygons, masks or keypoints: what each costs and buys

Measured seconds per label for tags, points, boxes, polygons and masks, from COCO, Cityscapes and the click-supervision papers, and what each extra second buys a model.

A box drawn with extreme clicking takes about 7 seconds, a COCO instance mask took about 79, and a finely annotated Cityscapes street scene took more than 90 minutes. Which image annotation type to buy depends on what those extra seconds return in model quality, and the papers that measured both suggest it is often less than teams pay for.

Seconds per label, as the papers measured them

The shapes themselves are well described elsewhere; Innovatiana’s data annotation guide is a good primer on the definitions. This article starts where such guides stop: how long each type took people to produce when a research team timed it, and what a model trained on it gained.

The numbers below come from studies that recorded annotator time with a fixed interface. They are not interchangeable to the second, because images, objects and tools differ, but the ratios between them hold up. The COCO paper gives its mask cost as more than 22 worker-hours per 1,000 segmentations, which is about 79 seconds each.

LabelMeasured timeSource
Image-level tag1 s per class; 20.0 s per PASCAL imageBearman et al. 2016
One click per object1.87 s per centre clickPapadopoulos et al. 2017
Point per class2.4 s first instance, 0.9 s each further oneBearman et al. 2016
Scribble10.9 s per squiggle; 34.9 s per imageBearman et al. 2016
Box, drawn and verified25.5 s + 9.0 s = 34.5 sSu et al. 2012, via Papadopoulos
Box, extreme clicking7.0 sPapadopoulos et al. 2017
Instance polygonabout 79 sLin et al. 2014 (COCO)
Instance mask, SAM-assisted34 s falling to 14 sKirillov et al. 2023
Whole image, per pixel239.7 s per PASCAL imageBearman et al. 2016
Street scene, finemore than 1.5 h, with QCCordts et al. 2016
Street scene, coarseunder 7 min (time limit set)Cordts et al. 2016
Six copies of a coastal photo with a beach house and waves, each with a different annotation: a detailed blue outline of the water, a coarse red polygon, a rough red outline, a red box, red and yellow scribbles, and one red and one yellow point.
The same water-segmentation image annotated six ways, as simulated in the study: a precise mask, a polygon, a rough mask, a box, scribbles and single points (the precise mask is outlined in blue; elsewhere red marks the target and yellow the background). Each step down the list records less boundary detail and takes less time, which is the whole trade this article prices. Images (panels arranged and labelled by us): Figure 5 of the paper (WATER panels) · CC BY 4.0 · from Zhang et al. 2023, “How to Efficiently Annotate Images for Best-Performing Deep Learning Based Segmentation Models: An Empirical Study with Weak and Noisy Annotations and Segment Anything Model”, arXiv:2312.10600

Keypoints, the type nobody timed

None of the timing studies above covers keypoints, and we have not found a comparable measurement. Their cost is driven by two things the other types lack: a fixed list of named points per instance (17 for a COCO person), and a visibility flag on each, which forces a judgement on every occluded joint. Skeleton definitions also differ between datasets, as our pose estimation datasets post explains, so a keypoint order has to name the skeleton as well as the type.

What has been measured is how few keypoint labels a model can need. The DeepLabCut authors found that with about 200 labelled frames their network tracked animal body parts with accuracy comparable to a human, and around 100 frames gave errors of 5 pixels or less. Human labelling variability on the same task was 2.69 pixels. That is a controlled laboratory setting, but it suggests the useful question for keypoints is how many frames rather than how many seconds per point.

For budgeting, price keypoints per point rather than per person, and allow for the occlusion decisions. Crowded scenes cost more per point than isolated subjects, because more joints are hidden and each one still needs a flag.

The cheap end: tags, points and scribbles

The What’s the Point study by Bearman et al. timed annotators on PASCAL VOC 2012 and trained segmentation models from each kind of label. Image-level tags alone gave 29.8% mIoU. One point per class, which added about two seconds per image, gave 35.1%, and 42.7% with an objectness prior. Under a fixed annotation budget, point-trained models beat image-level, squiggle and full supervision by 2.7 to 20.8 points of mIoU.

The reason is arithmetic. At 239.7 seconds per fully annotated image, the time that buys one full image buys about ten point-annotated ones, and for that model and dataset breadth beat precision.

Points work for detection too. In the click-supervision study by Papadopoulos et al., a centre click took 1.87 seconds. A detector trained from one click per object reached 45.9% mAP on PASCAL VOC 2007, against 55.5% with full boxes. Two clicks per object reached 49.1% for 7.6 hours of annotation, against 71 hours for the boxes.

For instance masks, Cheng, Parkhi and Kirillov had annotators mark ten random points inside each existing box as object or background. That was about five times faster than drawing full masks, and Mask R-CNN trained on it reached 94 to 98% of its fully supervised performance on COCO, PASCAL VOC, Cityscapes and LVIS.

How much accuracy each extra second buys

Boxes are the clearest case of paying less for the same thing. With extreme clicking, annotators click the top, bottom, left and right extremes of the object and the box follows. Detectors trained on those boxes matched detectors trained on the original PASCAL boxes exactly (56 mAP with AlexNet and 66 with VGG16 on VOC 2007), and 91 to 94% of the boxes overlapped the ground truth at IoU above 0.7.

For segmentation, the most direct comparison is by Zhang et al. (2023), who tested six annotation styles on two natural-image and two medical datasets under fixed budgets. Their conclusion is blunt: precisely outlining objects is “virtually never the optimal approach when annotation budget is limited”. Above roughly 0.8 mIoU, label quality had little effect on the trained model. Boxes followed by zero-shot segmentation with SAM were among the most cost-effective options, and scribbles worked well on natural images but poorly on CT and MRI.

Precision still pays in three places: when the output is a measurement taken from the mask (an area, a volume, a defect size), when objects are thin or interlocking so that a box covers mostly background, and in the test split. A coarse test mask caps the score you can measure, so keep the evaluation set precise whatever you buy for training.

There is also a ceiling on what precision can buy, and people set it. When 30 Cityscapes images were annotated twice by different annotators, 96% of pixels received the same label, or 98% excluding void. The Segment Anything authors cite prior estimates of inter-annotator mask consistency at 85 to 91% IoU. Paying for boundary accuracy beyond the point where two careful annotators agree buys noise.

A line chart of mIoU (0.15 to 0.8) against the number of perfect annotations possible in the time (50 to 10,000, log scale) for nine annotation styles. Box and scribble lines with SAM start highest on the left; the precise-mask line (perf) starts lowest and rises to 0.773 at 10,000; point-based lines stay below 0.4.
Segmentation accuracy (mIoU) on PASCAL VOC against the annotation budget, expressed as the number of precise masks the same time would buy. At small and medium budgets, boxes or scribbles turned into masks with SAM reach a given accuracy far more cheaply than precise masks, which only catch up at the largest budget, reaching the best observed 0.773. Image (left plot, cropped): Figure 3 of the paper (PASCAL VOC plot) · CC BY 4.0 · from Zhang et al. 2023, “How to Efficiently Annotate Images for Best-Performing Deep Learning Based Segmentation Models: An Empirical Study with Weak and Noisy Annotations and Segment Anything Model”, arXiv:2312.10600

Converting between types, and what you lose

Conversion is free in one direction. A mask gives you its box exactly, a polygon rasterises to a mask, and either gives a centre point and an image-level tag. Going the other way needs a model, and the model’s errors become label errors.

  • Mask or polygon to box: lossless. Take the extremes of the pixels or vertices.
  • Polygon to mask: lossless at the polygon’s own precision. Holes and multi-part objects depend on the format; our COCO JSON format post covers its two segmentation encodings.
  • Box to mask: needs a segmenter. In the extreme-clicking paper, masks made from extreme points with GrabCut matched the ground truth at 78.1% mIoU on VOC 2007, 3.7 points above GrabCut masks made from boxes alone. A box-prompted SAM is the current equivalent; review a sample before trusting it.
  • Points to boxes: not without a model, because a point has no extent.
  • Anything to keypoints: not possible. A keypoint is a named position, such as a left wrist, that no outline encodes.
Each label type can be derived from the one to its left for free, but not the other way, and no outline gives you keypoints. Times per label are those measured for COCO polygons (Lin et al., 2014), SAM-assisted masks (Kirillov et al., 2023), extreme-click boxes and centre clicks (Papadopoulos et al., 2017) and tags (Bearman et al., 2016).

Choosing by task, and pricing the order

Start from what the model must output, then pick the cheapest label that supervises it. Write the chosen type and its rules (tightness, occlusion, minimum size) into the guidelines before work starts, because changing type midway means relabelling; our annotation guidelines template produces the skeleton.

The table below prices one order, 10,000 images with seven objects each, from the measured times. It counts annotation only, plus verification where the source included it. Our free annotation cost estimator runs the same arithmetic with your own counts.

  • Image class: image-level tags. Add points only if small objects in multi-label images get missed.
  • Counting or locating: one click per object. Move to boxes when objects overlap and extents matter.
  • Detection: extreme-click boxes. Polygons add nothing a box detector can use, unless objects are thin or rotated and you need tight oriented boxes derived from them.
  • Instance masks: boxes plus a box-prompted segmenter with review, or points inside boxes; polygons where the mask itself is measured. Our instance segmentation post covers what that data must contain.
  • Semantic segmentation: points or coarse polygons for training, fine masks for the test split. On CT and MRI, Zhang et al. found scribbles underperformed.
  • Pose: keypoints with visibility flags. There is no cheaper substitute, so spend the effort on the number of frames.
  • Mixed: rich labels for a few thousand images and cheap ones for the rest. Cityscapes shipped 5,000 fine and 20,000 coarse images, and 97% of labelled pixels in the coarse set matched the fine labels.
Label, 7 objects per imageSeconds per imageHours for 10,000 images
Centre click (1.87 s)1336
Extreme-click box (7.0 s)49136
Box drawn and verified (34.5 s)242671
SAM-assisted mask (14 s)98272
COCO-style polygon (79 s)5531,536
Fine full scene, Cityscapes5,400 or more15,000 or more

Questions people ask

What is the difference between a polygon and a segmentation mask?

A polygon is a list of vertices traced around an object; a mask assigns a label to every pixel. A polygon rasterises into a mask, and its precision depends on how many vertices the annotator places. In Zhang et al.’s cost study, polygons were given a mask quality of 0.87 IoU against precise masks and cost about 30% as much. A mask also represents holes directly; a polygon needs extra conventions for them.

Which annotation type is cheapest to produce at scale?

Image-level tags, at about one second per class in the label set (20 seconds for a PASCAL image). Next come single clicks (1.87 seconds per object in Papadopoulos et al.) and extreme-click boxes (7.0 seconds). Conventional boxes with verification took 34.5 seconds and COCO polygons about 79. Cheapest per label is not cheapest per useful model, though: the right comparison is accuracy at a fixed budget, where points often win.

Can I convert one annotation type into another?

Downwards, yes, and without loss: masks and polygons give exact boxes, centre points and tags. Upwards needs a model. Boxes can be turned into masks with a box-prompted segmenter such as SAM or with GrabCut, but the result inherits the model’s errors and needs sampling and review. Keypoints cannot be derived from any outline, because they name specific parts.

Do I need to pick just one annotation type for my whole project?

No. Mixed supervision is normal and often the best use of budget. Cityscapes paired 5,000 finely annotated images with 20,000 coarse ones. A common split is precise labels on the test set and a few thousand training images, with cheaper labels for volume. Fix the mix in the guidelines before work starts, so each image has one known type.

Is polygon annotation better than bounding box for object detection?

Not for a detector that outputs boxes. The model learns boxes either way, and extreme-click boxes trained detectors exactly as well as the original PASCAL boxes at a fifth of the time. Polygons are worth it if you will need masks later, if objects are thin or rotated so that an axis-aligned box is mostly background, or if you need oriented boxes derived from the outline.

Stop hunting. Start searching.

Tens of thousands of curated datasets, searchable in plain language — with the licence and size checked before you download anything.

Search Dataset Finder →