Try for free
PRODUCT
CVAT CommunityCVAT OnlineCVAT Enterprise
SERVICES
Labeling Services
COMPANY
AboutCareersContact usLinkedinYoutube
PRICING
CVAT OnlineCVAT Enterprise
RESOURCES
All ResourcesBlogDocsVideosAcademyCase StudiesPlaybooks
COMMUNITY
DiscordGitHub
CVAT Academy

Lecture

7

.

Brush Tool in CVAT for Pixel-Accurate Segmentation

One of the most frequently used annotation tools in CVAT is the Brush tool. This tool combines the capabilities of brush and polygon annotations, providing flexibility in creating masks for objects of any complexity.

What is the Brush Tool in CVAT?

The Brush tool in CVAT allows you to draw masks manually using the cursor as a brush or create them based on polygons. When using polygons, we mark the outer contours of the object, and this area is then transformed into a mask. This makes the tool especially useful for tasks that require high precision and detailing, including complex or irregular object shapes.

Brush Tool (Mask) vs. Polygons: What’s the Difference?

Masks and polygons in CVAT have different approaches to annotating objects:

  • Masks allow you to highlight both the outer contours and internal areas of objects. Using the Brush tool, complex shapes can be annotated, including holes and details inside objects.
  • Polygons, on the other hand, are limited to annotating only the outer contour of the object. CVAT does not allow cutting internal areas or creating holes within polygons.

This key difference makes masks more versatile in tasks that require detailed work.

Advantages and Disadvantages of the Brush Tool

Advantages of the Brush Tool:

  • Flexibility: Allows the creation of masks of any shape, including complex contours and internal holes.
  • High precision and detailing: The Brush tool lets you work with minute details, including hair and other small elements.

Disadvantages of the Brush Tool:

  • Labor-intensive: Working with the Brush tool can take a long time, especially for large objects or complex scenes.
  • Skill requirement: Annotators need more experience and attention to detail to work effectively with the Brush tool compared to using a simple polygon.
  • Editing difficulties: Correcting masks can be a labor-intensive process, especially when significant revisions are needed.

Main Tasks of the Brush Tool in CVAT

Masks are a versatile tool for tasks that require high accuracy and detailed object selection. Here are the main examples where masks are applied:

  • Object Segmentation in Images
    Masks are widely used in instance segmentation and semantic segmentation tasks for pixel-level object selection. This is crucial in computer vision for identifying complex shapes, such as people, animals, plants.
  • Background Removal
    In urban datasets, masks are often used to isolate vehicles from the background, such as roads, buildings, and pedestrians. For example, when annotating images for autonomous driving models, accurately separating cars, buses, and bicycles from their surroundings ensures the model focuses on the features of the vehicles themselves, improving object detection and recognition performance.

  • Medical Segmentation
    In medical imaging, masks are used to highlight organs, tissues, and pathologies (such as tumors) in CT, MRI, and X-ray images, aiding in diagnosis and research.

Examples of Mask Use

Popular datasets for masks and polygons may overlap, but their use depends on the type of tasks the data is intended for. The primary difference lies in the annotation format and the level of detail required for a specific case.

  • COCO (Common Objects in Context)
    Supports instance segmentation, providing masks for objects. Masks are important for tasks that require high-precision object segmentation.
    Example use: training Mask R-CNN.
  • Cityscapes
    Contains masks for semantic and instance segmentation of urban infrastructure. Provides high-detail scenes, useful for autonomous driving.
    Example use: segmentation of roads, pedestrians, buildings.
  • Pascal VOC
    Masks for semantic segmentation, though less complex than those in COCO.
    Example use: basic object segmentation tasks.

Conclusion

The Brush tool in CVAT is a powerful tool that provides unique capabilities for annotating objects of any complexity. Although working with this tool may require more time and skill, its versatility makes it indispensable in tasks that require detailed annotations and mask work.

Lecture
1
.
Data Annotation 101: What It Is and Why It Matters
What is Data Annotation? Definition, Use Cases, Types, and Roles
Lecture
2
.
What a Data Annotator Does
What a Data Annotator Does: Roles, Skills, and Responsibilities
Lecture
3
.
Data Confidentiality in Annotation
Data Confidentiality in Annotation: Rules, Risks, and Best Practices
Lecture
4
.
Getting Started with CVAT
CVAT UI Overview: Projects, Tasks, Jobs & Roles
Lecture
4
.
Getting Started with CVAT
Getting Started with CVAT Online (Part 1)
Lecture
4
.
Getting Started with CVAT
Getting Started with CVAT Online (Part 2)
Lecture
5
.
Bounding Boxes in CVAT
Bounding Box Annotation in CVAT: Basics & Tips
Lecture
5
.
Bounding Boxes in CVAT
Bounding Box Annotation in CVAT (Overview)
Lecture
5
.
Bounding Boxes in CVAT
Bounding Box Annotation in CVAT (Practical Task)
Lecture
6
.
Polygons & Polylines in CVAT
Polygon & Polyline Annotation in CVAT
Lecture
6
.
Polygons & Polylines in CVAT
Polygons & Polylines in CVAT (Overview)
Lecture
6
.
Polygons & Polylines in CVAT
Polygons & Polylines in CVAT (Practical Task)
Lecture
7
.
Brush Tool in CVAT
Brush Tool in CVAT for Pixel-Accurate Segmentation
Lecture
7
.
Brush Tool in CVAT
Brush (Mask) Tool in CVAT (Overview)
Lecture
7
.
Brush Tool in CVAT
Brush (Mask) Tool in CVAT (Practical Task)
Lecture
8
.
Keypoints & Skeletons in CVAT
Keypoints & Skeletons in CVAT: Pose and Landmark Annotation
Lecture
8
.
Keypoints & Skeletons in CVAT
Points & Skeleton in CVAT (Overview)
Lecture
8
.
Keypoints & Skeletons in CVAT
Points & Skeleton in CVAT (Practical Task)
Lecture
9
.
Tags & Attributes in CVAT
Attributes in CVAT: Metadata That Improves Your Dataset
Lecture
9
.
Tags & Attributes in CVAT
Annotation with Tags: Instant Image Classification
Lecture
9
.
Tags & Attributes in CVAT
Tags & Attributes in CVAT (Overview)
Lecture
9
.
Tags & Attributes in CVAT
Tags & Attributes in CVAT (Practical Task)
Lecture
10
.
Cuboids in CVAT
Cuboids in CVAT: 3D Bounding Boxes and Spatial Labeling
Lecture
10
.
Cuboids in CVAT
Cuboids in CVAT (Overview)
Lecture
10
.
Cuboids in CVAT
Cuboids in CVAT (Practical Task #1)
Lecture
10
.
Cuboids in CVAT
Cuboids in CVAT (Practical Task #2)
Lecture
11
.
Ellipse Tool in CVAT
Ellipse Tool in CVAT: Fast Annotation for Round Objects
Lecture
11
.
Ellipse Tool in CVAT
Ellipse Tool in CVAT (Overview)
Lecture
11
.
Ellipse Tool in CVAT
Ellipse Tool in CVAT (Practical Task)
Lecture
12
.
Track Mode in CVAT
Track Mode in CVAT: Video Annotation & Keyframes
Lecture
12
.
Track Mode in CVAT
Track Mode in CVAT (Overview)
Lecture
12
.
Track Mode in CVAT
Track Mode in CVAT (Practical Task)
Lecture
13
.
AI Tools in CVAT
AI Tools in CVAT: Assisted and Automatic Annotation
Lecture
13
.
AI Tools in CVAT
AI Tools in CVAT (Overview)
Lecture
13
.
AI Tools in CVAT
AI Tools in CVAT (Practical Task)
Lecture
14
.
Labeling Guidelines: How to Keep Annotations Consistent
Labeling Guidelines: How to Keep Annotations Consistent
Lecture
14
.
Labeling Guidelines: How to Keep Annotations Consistent
Annotation Guidelines: How to Create Labeling Rules
Lecture
15
.
Annotation Quality: What “Good Labels” Look Like
Annotation Quality: What “Good Labels” Look Like
Lecture
15
.
Annotation Quality: What “Good Labels” Look Like
What “Good Labels” Look Like
Lecture
16
.
Quality Control Methods for Annotation in CVAT
Quality Control for Annotation: Reviews, Checks, and Workflow Tips
Lecture
16
.
Quality Control Methods for Annotation in CVAT
Quality Control Methods in CVAT