Home / Insights / Bounding Boxes vs Polygons vs Segmentation Masks: Choosing the Right Annotation Type

Bounding Boxes vs Polygons vs Segmentation Masks: Choosing the Right Annotation Type

Bounding boxes, polygons, segmentation masks and keypoints each suit different models and budgets. How to choose the right image annotation type for your computer vision project.

DataVision Labs · 25 November 2026 · 3 min read

One of the first decisions in any computer vision project is how to draw the labels. Bounding boxes, polygons, segmentation masks and keypoints all describe where an object is, but they differ a lot in precision, effort and cost. Choosing the wrong one either wastes annotation budget or leaves your model short of the detail it needs. This guide compares the main image annotation types and when to use each.

Bounding boxes

A bounding box is the smallest rectangle that contains an object. It is the fastest annotation type and the standard input for object detection models.

  • Best for: detecting and counting objects, such as vehicles, people, products on shelves and animals.
  • Limitations: boxes include background, so they say little about shape. Thin, diagonal or irregular objects, such as poles, cables and cracks, fit badly.
  • Rules to agree: whether boxes cover only the visible part or the estimated full extent, how to treat truncated and occluded objects, and the minimum object size worth labeling.

Rotated boxes

Rotated, or oriented, boxes follow an object’s angle. They are common in aerial and satellite imagery, where vehicles, ships and buildings appear at every orientation and a normal box would include too much background.

Polygons

A polygon traces an object’s outline with a series of points. It captures shape far better than a box and is often used as a lighter alternative to full masks.

  • Best for: irregular objects, building footprints, defects, produce and anything where shape matters.
  • Rules to agree: how closely to follow the edge, the typical number of points, and how to handle holes and touching objects.

Segmentation masks

Segmentation assigns a class to every pixel. It is the most precise and the most expensive option, and it is needed when a model must know exactly which pixels belong to what, for example drivable road, surgical tools or crop rows. Our article on semantic, instance and panoptic segmentation explains the three variants.

Keypoints and skeletons

Keypoints mark specific points on an object, such as joints on a human body, fingertips on a hand or corners of a part. Connected keypoints form a skeleton used for pose estimation and, increasingly, for robot manipulation. See our guide to hand keypoint annotation.

Classification and tags

Sometimes no geometry is needed at all. Image classification assigns one or more labels to the whole image, such as “defect present”, “night” or “rain”. It is the cheapest option and often used to filter or route data before detailed labeling.

How to choose

  1. Start from the model output. A detector needs boxes; a segmentation model needs masks; a pose model needs keypoints.
  2. Ask what errors cost. If a few pixels of boundary error change a decision, as with defect size or drivable area, use polygons or masks.
  3. Check object shape. Thin, diagonal or irregular objects usually need rotated boxes or polygons.
  4. Mix types where it helps. Many projects combine boxes for most classes with masks for a few critical ones.
  5. Pilot before scaling. Label a small set with two options and compare effort against the precision your model actually uses.

Effort and cost, roughly

As a rule of thumb, polygons take several times longer than boxes, and full masks take longer again, depending on image complexity. Keypoints vary with the number of points and how often they are occluded. A pilot on your own images is the only reliable way to estimate throughput.

DataVision Labs provides image annotation and segmentation services with written rules and two-stage QC. Request a pilot to compare annotation types on your own data.

Frequently asked questions

Is a bounding box or a polygon better?

Neither is better in general. Boxes are faster and suit detection; polygons capture shape and suit irregular objects or tasks where boundaries matter.

When do I need segmentation masks?

When your model must know exactly which pixels belong to each class or object, such as drivable area, defects or medical structures.

Can one project use several annotation types?

Yes. Mixing boxes, polygons and keypoints by class is common and often the most cost-effective approach.

Send a sample. Judge the labels.

Share a representative sample and your guidelines. We label a pilot set, you measure it against agreed criteria, then decide.