Segmentation
  • 20 Dec 2022
  • 2 Minutes to read
  • Dark
    Light
  • PDF

Segmentation

  • Dark
    Light
  • PDF

Article Summary

Overview

Segmentation is used to identify objects with great precision. This is done by using pen-like tools to mark the exact location of a region. Using this method takes more time to label objects. So why choose Segmentation? Let’s explore this answer in an example.

Let’s say you want to identify cracks in the cement. You could use Object Detection. However, bounding boxes would include too much non-defective space (or space that you do not want to include in your label). Remember, when you include non-defective space in your label, you tell the platform that this extra space is part of the defect (or object). Consider the screenshots below where the user is trying to identify a crack with Object Detection and Segmentation. Which would you choose?

Bounding Boxes to Detect Cracks in Cement 

Segmentation to Detect Cracks in Cement 

Segmentation Tools

Segmentation offers these tools to help detect objects: 

  • Polygons: Create a shape to fill the object you want to detect.
  • Brushes: "Paint" over the object you want to detect. 
  • Polylines: Create lines over the object you want to detect.
Tip:
Use the Brush to erase excess lines.

Label with Polygons

  1. Open the Project you want to edit.
  2. Open the image you want to label.
  3. Click the Label tab.
  4. Select the Class you want to label from the drop-down menu.
    Class on the Label Tab 
  5. Click the Polygon icon. (You can also press P on your keyboard.)
  6. The Draw icon is auto-selected. Keep this setting.
    Polygon Icon 
  7. Click where you want to start your shape. A blue circle displays, indicating the start of the shape.
  8. Click to continue creating your shape.
  9. Complete your shape by clicking the blue circle. The shape automatically fills with the color of the Class.
    Create Shapes with the Polygon Tool 

Label with Brushes

  1. Open the Project you want to edit.
  2. Open the image you want to label.
  3. Click the Label tab.
  4. Select the Class you want to label from the drop-down menu.
    Class on the Label Tab 
  5. Click the Brush icon. (You can also press B on your keyboard.)
  6. By default, the Draw icon is auto-selected. Keep this setting.
  7. Adjust the size of the line width accordingly.
    Configure the Brush Settings 
  8. Click and drag your cursor over the area you want to identify.
  9. Release the mouse to complete your edits.
    Label with the Brush Tool 

Remove Excess Labels with Brushes

Note:
You can also remove excess labels with Polygons. This process is similar to the procedure in this section. For more information on how to use the Polygon tool, go here.

To remove excess labels with a Brush:

  1. Open the Project you want to edit.
  2. Open the image you want to label.
  3. Click the Label tab.
  4. Click the Brush icon. (You can also press B on your keyboard.)
  5. Click the Erase icon. (You can also press E on your keyboard.)
  6. Adjust the size of the eraser accordingly.
    Configure the Eraser Settings 
  7. Click and drag your cursor over the area you want to remove.
  8. Release the mouse to complete your edits.
    Erase Excess Lines 

Label with Polylines

  1. Open the Project you want to edit.
  2. Open the image you want to label.
  3. Click the Label tab.
  4. Select the Class you want to label from the drop-down menu.
    Class on the Label Tab 
  5. Click the Polyline icon. (You can also press L on your keyboard.)
  6. Adjust the size of the line width accordingly.
    Configure the Polyline Settings
  7. Click where you want to start your line.
  8. Click to change the direction of your line.
  9. Press Enter on your keyboard to complete your edits.
    Create Lines with the Polyline Tool 

Was this article helpful?