Skip to main content

<Brush>

Category: Control tag

The Brush tag is used for image segmentation tasks where you want to apply a mask or use a brush to draw a region on the image.

Use with the following data types: image.

Attributes​

AttributeTypeRequiredDefaultDescription
namestringyes—Name of the element
toNamestringyes—Name of the image to label
choicesingle,multiplenosingleConfigure whether the data labeler can select one or multiple labels
maxUsagesnumberno—Maximum number of times a label can be used per task
showInlinetrue,falsenotrueShow labels in the same visual line
smarttrue,falseno—Show smart tool for interactive pre-annotations
smartOnlytrue,falseno—Only show smart tool for interactive pre-annotations

Examples​

Basic image segmentation labeling configuration:​

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