What is image annotation? Types, examples and how the work goes

For experts4 min read

People often ask what is image annotation. It is the work of marking what is in a picture so that a computer vision model can learn from it. The marks come in a few types: boxes, polygons, masks, keypoints and tags. This guide explains each and when to use it.

What is image annotation, in one view

A model cannot learn what a pedestrian is from raw pixels alone. It learns from thousands of pictures where people have drawn around each pedestrian and given the shape a name. That drawing and naming is image annotation. The result is called a labelled dataset.

Annotation tools offer different drawing methods. Label Studio, an open-source tool, groups its computer vision templates under tasks such as bounding boxes for object detection, polygons or masks for semantic segmentation, keypoint labelling and optical character recognition.

Source: Label Studio templates(opens in a new tab)

The main image annotation types

TypeWhat you drawBest forWeak point
Image tagA label for the whole pictureSorting images, such as indoor or outdoorSays nothing about where things are
Bounding boxA rectangle around an objectCounting and locating objects quicklyIncludes background in corners
PolygonPoints that follow the outlineIrregular objects such as roads or animalsSlower than boxes
Mask or brushPainted pixels of a classFine boundaries, medical or satellite imagesSlowest and needs steady hands
KeypointsDots on parts such as joints or eyesPose and face landmarksOrder and naming must be exact
Text in imageBoxes plus the written wordsReceipts, signs, documentsNeeds careful reading of small text

The COCO dataset, one of the best known in the field, lists tasks such as object detection, keypoints, stuff, panoptic and captioning, which shows how many kinds of label can sit on the same pictures.

Source: COCO dataset(opens in a new tab)

Choosing between a box and a polygon

Use a box when you need to know that an object is there and roughly where. It is fast and consistent. Use a polygon when shape matters: a tilted car, a river, a crop field. A box around a diagonal object contains a lot of empty space, and a model trained on it can confuse the background with the object.

Ask what the project will use the label for. A count of cars at a junction needs boxes. A map of flooded land needs outlines or masks.

How an image annotation task goes

  1. Read the guideline: the class list, what counts as an object, what to skip.
  2. Open the image and scan it whole before you draw.
  3. Draw each object, keeping edges tight to the visible outline.
  4. Choose the class for each shape from the list.
  5. Handle special cases the guideline names, such as partly hidden objects.
  6. Check that nothing is missed or double-labelled, then submit.

Rules of thumb for clean labels

  • Tight but not cutting: the edge should touch the object, not slice it.
  • Label every instance of a class, including the small and unclear ones, unless told otherwise.
  • Partly hidden objects: follow the rule given. A common one is to label what you can see, or to label the full extent if you can infer it.
  • Do not draw across the picture edge. Stop at the border.
  • Keep the same habits on the hundredth image as on the first.

Examples by field

  • Farming: polygons around crop fields and masks for diseased leaves.
  • Health: masks on regions of a scan, reviewed by a clinician.
  • Retail: boxes around products on shelves, with a class for each brand.
  • Transport: boxes and keypoints for vehicles and pedestrians.

Specialist knowledge can matter. A person who can tell crop diseases apart will label leaves more accurately than someone who cannot, and the guideline will say so when it does.

Quality checks you can run on yourself

Zoom in on a few of your boxes. Do the edges match? Look for objects you missed in corners and in shadow. Compare a sample with the guideline's examples. Quality reviewers compare your labels to a reference or to other annotators, so consistency counts as much as precision.

What the tools give you

Most tools offer zoom, a hotkey for each class, undo, and an option to copy a label from the previous image. Learn the hotkeys early. A person who clicks through menus for every shape works at half the pace of someone who uses the keyboard, and the quality is usually lower as well because the rhythm breaks.

Some tools also offer assist features, such as a model that suggests a box that you then fix. These speed up easy cases. They also introduce a risk: you may accept a plausible but wrong suggestion. Always check the edges and the class before you confirm.

Keep your screen and lighting comfortable. Small edges are easy to miss on a dim display, and tired eyes drift toward looser boxes by the end of a long session.

Curatrain's work includes labelled data with written reasons, and 3D, visual and game data. Experts are matched only to jobs whose tests they have passed.