Segmenter

Image segmentation identifies distinct features (regions) in an image by analyzing pixels. The Segmenter tool generates contiguous pixel regions (blobs) for each distinct feature.

Mark the feature you want the Segmenter tool to find using the various Label tools. After training, the tool can predict the appearance of the features in the new images.

The Segmenter tool requires training with both good and bad images for accuracy.

Note: When using high-resolution images, prediction algorithms might create very small defect labels that can clutter the training process. You might need to zoom in to see these labels. To manage the detailed predictions, you can either erase part of the image or clear the entire prediction.

To set up the Segmenter tool:

  1. ROI The Region of Interest (ROI) is the area of the image where the vision tool operates.: Set the ROI to create Views The area of the image that the device operates on is called a view. A view can be the entire image, a user-defined rectangular area of the image, or the output of a tool, depending on the tool. from your images.

  2. Label: Use the Pen tool to mark the features you want the tool to find.

  3. Train: Set the training mode and parameters. Choose the Train Model.

  4. Process: Set the parameters and click Process All.

    When processing finishes, the results panel shows detailed statistics about the results of the tool.

How to label with the Segmenter tool

In the Label step, access the tools above the viewport:

Number Description
1 Move tool
2 Pen tool
3 Eraser tool
4 Ellipse tool
5 Rectangle tool
6 AI-assisted labelingLabeling is the process of marking features or defects in images, or categorizing the images into classes. Labeling is crucial for training Deep Learning Lite and Deep Learning Standard tools because the labels serve as training material to guide the tools how to function correctly.
7 Clear All button, clears all labels
8 For the Ellipse and Rectangle tools, check to fill entire area
9 For the Ellipse and Rectangle tools, check to erase area
10 Adjust the stroke width either by adjusting the slider or adding a new pixel value
11 Click parts of the image to add to label area
12 Click parts of the image to remove from label area
13 Apply AI labels
14 Discard AI labels
  1. Mark the features you want the Segmenter tool to find with the available tools.

  2. Use the Eraser tool or the Subtract options to delete unwanted parts of the label.

  3. Use the AI Assisted Labeling to find features.

How to train the Segmenter tool

In the Train step, adjust the Training options.

  1. Select the Training mode you want to use:

    • Deep Learning Lite

      • Few Sample: Default. Trainable with only a few images.

      • Accurate: Optimized for accuracy, requires more images to train.

    • Deep Learning Standard

      • Fast: Optimized for fast processing speed at runtime.

      • Accurate: Optimized for accuracy with large datasets.

      • Robust: Optimized to handle lighting and environmental variation.

      Note: Deep Learning Standard is currently not deployable on In-Sightvision sensors.
  2. Adjust the training parameters as needed.

  3. To auto-assign roles to images, click Auto-Assign Roles. A pop-up window provides you with options for how to assign roles:

    See the Label section for more information.

How to verify the accuracy of the Segmenter tool trained model

After training, adjust Process step parameters to accurately inspect the image dataset.

  1. Set the appropriate process parameters. Process parameters vary based on the train mode and model selected.

  2. After you set the parameters, click Process All.

  3. Review the inspection results for your image data set. For more information, see Metrics and Statistics.

How to use the Segmenter tool with other AI tools

If you add an AI tool downstreamA downstream tool requires a previously configured upstream tool and its configuration as input. The tool is placed after its upstream tool in the toolchain. from another AI tool, extra parameters appear in the ROIThe Region of Interest (ROI) is the area of the image where the vision tool operates. step of the downstream tool.

If the Segmenter tool is the upstreamAn upstream tool comes first in the toolchain and its output defines a downstream tool. An upstream tool can have several downstream tools. tool for a Classify or Locate tool, the following optional parameters appear in the downstream tool ROI settings: