GUIDE 3 Annotation Team Playbooks to Boost Labeling Speed and Quality

Bitmask

The Bitmask tag for pixel-wise image segmentation tasks is used in the area where you want to apply a mask or use a brush to draw a region on the image.

Bitmask operates on pixel level and outputs a Base64 encoded PNG data URL image with black pixels on transparent background.

Export data example: data-url:image/png;[base64-encoded-string]

Note: You need to set smoothing="false" on the Image tag to be able to work with individual pixels;

Use with the following data types: image.

Parameters

Param Type Default Description
name string Name of the element
toName string Name of the image to label
[choice] single | multiple single Configure whether the data labeler can select one or multiple labels
[maxUsages] number Maximum number of times a label can be used per task
[showInline] boolean true Show labels in the same visual line
[smart] boolean Show smart tool for interactive pre-annotations
[smartOnly] boolean Only show smart tool for interactive pre-annotations

Example

Basic image segmentation labeling configuration:

<View>
  <Bitmask name="bitmask" toName="image" />
  <Labels name="labels" toName="image">
    <Label value="Person" />
    <Label value="Animal" />
  </Labels>
  <Image name="image" value="$image" />
</View>

In this article

  1. Parameters
  2. Example
Designed for teams of all sizes Compare Versions