Sub topic 8
Choosing and Configuring an Annotation Tool
Assume you know basic Python, JSON, image width and height, and the purpose of supervised model training. This chapter focuses on selecting and configuring the software used to create labels. The tool does not decide what a correct label means. Your taxonomy and labelling guidelines do that.
Match the tool to the annotation task
An annotation tool is software that lets a person draw labels on images and export those labels for training. Start by listing the shapes and metadata your project needs:
- Classification needs one or more labels for the whole image.
- Object detection needs one bounding box for each object.
- Semantic segmentation needs a mask showing each pixel's class.
- Instance segmentation needs a separate mask for each object.
- Attributes may record properties such as
occluded,truncated, orvehicle_type.
Choose a tool that supports every required label type. A tool that only draws rectangles is unsuitable for a project that needs object outlines. Check whether it supports holes, overlapping masks, rotated boxes, image sequences, and brush-based mask editing when those features matter.
Compare practical capabilities
The best tool is the one that reduces mistakes in your actual workflow. Evaluate candidates with a small sample of representative images, including difficult cases.
| Capability | Why it matters | Questions to test |
|---|---|---|
| Shape support | Determines which tasks are possible | Can it draw boxes, polygons, and masks? |
| Export formats | Controls compatibility with training code | Can it export the format your pipeline expects? |
| Review workflow | Separates labelling from approval | Can reviewers accept, reject, and comment? |
| Collaboration | Prevents conflicting edits | Are users, roles, and assignments available? |
| Version history | Makes corrections traceable | Can you recover an earlier annotation? |
| Automation | Reduces repetitive work | Does it offer imports, APIs, or pre-labels? |
A browser-based tool often simplifies team access and central management. A desktop tool may work better for sensitive images, offline work, or very large local files. Hosted software can provide review and audit features, but verify its data-handling and retention policies before uploading private images.
Configure the project before labelling
Create a project configuration that makes valid actions easy and invalid actions difficult. Add only the classes the model must distinguish. Each class should have a stable name and identifier. Avoid changing names after labelling begins because exports and training scripts may depend on those identifiers.
Configure these settings explicitly:
- Class names and display colours.
- Allowed shapes for each class.
- Required attributes, such as occlusion level.
- Whether a box covers the visible region or the complete object.
- Rules for objects cut off by the image boundary.
- Minimum object size and whether tiny objects are ignored.
- Whether overlapping instances remain separate.
- Reviewer and annotator permissions.
- Export format and coordinate convention.
For example, a project might require one rectangle per car, use the full visible car extent, mark cars that are partly hidden as occluded, and mark cars cut by an image edge as truncated. These choices must match the written guideline. A colour choice helps people find labels, but it does not define the class.
Run a pilot and adjust the interface
Before assigning the full dataset, give two or more annotators the same small batch. Compare their labels and record where they disagree. Disagreements often reveal unclear class definitions, missing attributes, or an inconvenient interface.
Use the pilot to test:
- Whether shortcuts reduce accidental shape changes.
- Whether zoom and pan work precisely enough for small objects.
- Whether masks can be edited without damaging nearby instances.
- Whether hidden labels or locked regions behave as expected.
- Whether the exported files preserve image identifiers and labels.
- Whether a second person can review the exported annotations.
After configuration changes, re-export the pilot and validate it with the same scripts used for production data. Keep the project configuration, guideline version, tool version, and export settings together. This record makes later corrections reproducible.
Exercise
A project needs separate masks for overlapping objects, an occluded attribute, reviewer approval, and COCO export. What should you verify before selecting a tool?
Show answer
Verify instance-mask support, custom attributes, review roles or status changes, and a COCO exporter that preserves object identity and metadata. Test all four features on representative images during a pilot.