Introduction to Labeling Tools

You are currently viewing the documentation for the latest version (3.0.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

OK Label

Use the OK Label OK label tool to label an image as OK.

  • Select an image from the image list and then click the OK Label on the toolbar. The image will be labeled as OK.

Defect Labeling Tools

Defect labeling tools can label the defects in images to provide the information required by deep learning training.

You can choose among the following labeling tools built in the software according to actual needs.

Polygon Tool

The Polygon Tool can draw polygon labels with more vertices, which is suitable for regular defects.

tools introduction polygon
  1. Click the Polygon Tool icon tools introduction polygon icon (or press P on the keyboard).

  2. Click the first position (vertex) in the selection area, then click the second one, third one, etc., to draw the labels, and right-click to finish.

Brush Tool

Use the Brush Tool to draw labels of any shape. This tool is suitable for defects with complex shapes.

tools introduction pen
  1. Right-click the Polygon Tool icon tools introduction polygon icon and then click the Brush Tool icon tools introduction pen icon (or press B on the keyboard).

  2. Adjust the slider to set the thickness of lines according to the size of defects.

  3. Press and hold the left mouse button in the selection area, move in any direction, and then release the left mouse button to finish the drawing.

Autofill Lasso Tool

Draw arbitrarily shaped labels by forming closed shapes with brush paths. This tool is used for defects with complex shapes.

tools introduction lasso
  1. Right-click the Polygon Tool icon tools introduction polygon icon, and then click the Autofill Lasso Tool icon tools introduction lasso icon (or press N on the keyboard).

  2. Press and hold the left mouse button in the selection area and move in any direction.

Smart Labeling Tool

The Smart Labeling Tool can be used to automatically select the objects in the image. When multiple objects in an image have large color differences and are scattered, you can use the Smart Labeling Tool to conveniently label the objects in the image.

Currently, the Smart Labeling Tool can work in two modes, and it will automatically switch between them according to the actual situation. Users do not need to manually select a mode.

  • Standard mode (GPU): In this mode, the Smart Labeling Tool has robust labeling capabilities. This tool will automatically switch to the standard mode if the running device has a GPU, with available GPU memory of at least 2.5 GB, and there is no project undergoing training or validation.

  • Lite mode (CPU): In this mode, the Smart Labeling Tool has basic labeling capabilities. This tool will automatically switch to the lite mode if the running device has no GPU, or the available GPU memory is less than 2.5 GB, or there is a project undergoing training or validation.

Steps

  1. Click the Smart Labeling Tool icon tools introduction smart labeling icon (or press A on the keyboard).

  2. Move the cursor in the selection region and then click the object to be labeled.

    • If the selection cannot completely cover the object, click the uncovered part to expand the selection area.

    • If the selection covers the areas outside the object, right-click these areas to reduce the selection area.

  3. Click Apply in the upper-left corner of the selection region.

When the objects differ greatly in colors and have clear contours, it is recommended that you label multiple objects at a time and click Apply. If the objects are not obviously distinct, it is recommended to label one at a time.

Pre-trained Labeling Tool

After you validate a model, you can import new image data to the current module and use the pre-trained labeling feature to perform auto-labeling based on this model.

The pre-trained labeling feature is available only when the current module contains validated models.

The Pre-trained Labeling Tool can be used only on the following two types of data:

  • Unlabeled data

  • Automatically labeled data (images with a yellow triangle at the front of the image number)

  • The Pre-trained Labeling Tool can only label images that are not manually labeled. If you need to use the Pre-trained Labeling Tool on manually labeled images, you must clear these labels first.

  • Data after a manual adjustment will have the yellow triangle marker removed. The data will be no longer available for pre-trained labeling and VFM labeling.

The pre-trained labeling feature can significantly reduce the cost of manual labeling. However, the accuracy of the results depends on the model that you use. We recommend that you train a high precision model before you use the pre-trained labeling feature.

You can use the Pre-trained Labeling Tool in one of the following three methods:

  • Method 1: Pre-trained labeling button

    1. On the upper part of the image list, click the Pre-trained labeling button. All images in the image list will be labeled by using the Pre-trained Labeling Tool.

    2. After the labeling process is finished, you can view a yellow triangle in the upper left corner of the sequence number of the labeled images.

  • Method 2: Pre-trained labeling option

    1. In the image list, select one or more images that you need to label.

    2. Right-click the images and select Pre-trained labeling, the labeling process starts. After the labeling process is finished, you can view a yellow triangle in the upper left corner of the sequence number of the labeled images.

  • Method 3: Pre-trained Labeling Tool

    1. In the labeling toolbar, right-click the Smart Labeling Tool icon tools introduction smart labeling icon, and then click the Pre-trained Labeling Tool icon tools pre labeling tool icon (or press D on the keyboard).

    2. On the upper part of the image, click Start labeling, and the Pre-trained Labeling Tool will start to label the image. After the labeling process is finished, you can view a yellow triangle in the upper left corner of the sequence number of the image.

  • If you clear all labels of an image, the yellow triangle before it will be cleared.

  • In the Classification module, if you modify the class labels of an image, the yellow triangle before it will be cleared.

Mask Tool

If there are some irrelevant parts that may interfere with model training, you can use the Mask Tool to cover such parts. The masked parts will not be involved in training. It is recommended to set a distinct color for the mask.

For example, the object surface features that should not be judged as defects but are similar to defects, need to be masked out.

The Mask Tool supports different mask modes. You can choose whether the mask takes effect only on the current image or on all images as required.

You can choose among the following three mask tools built in the software according to actual needs.

Mask Polygon Tool

tools introduction mask polygon

  1. Click the Mask Polygon Tool icon tools introduction mask polygon icon (or press Shift + P on the keyboard).

  2. Set Mode and Fill.

  3. Click the first position (vertex) in the selection area, then click the second one, third one, etc., to draw the labels, and right-click to finish.

Mask Brush Tool

tools introduction mask pen

  1. Right-click the Mask Polygon Tool icon tools introduction mask polygon icon, and then click the Mask Brush Tool icon tools introduction mask pen icon (or press Shift+B on the keyboard).

  2. Set Mode, Fill, and the brush size.

  3. Press and hold the left mouse button in the selection area, move in any direction, and then release the left mouse button to finish the drawing.

Mask Lasso Tool

tools introduction mask lasso

  1. Right-click the Mask Polygon Tool icon tools introduction mask polygon icon, and then click the Mask Lasso Tool icon tools introduction mask lasso icon (or press Shift+A on the keyboard).

  2. Set Mode and Fill.

  3. Press and hold the left mouse button in the selection area and move in any direction to form closed shapes with the starting point.

Mask Mode

Mask modes are divided into Single image mask and Global mask.

  • Single image mask: The mask is only valid in the current image. Copy and batch-paste single image masks by following these steps:

    1. Use the Mask Tool to draw a single image mask.

    2. Click the Select Tool icon tools introduction select icon(or press F on the keyboard).

    3. In the labeling region, right-click the mask to be copied and click Copy (or press Ctrl+C on the keyboard); in the target image, right-click and select Paste (or press Ctrl + V on the keyboard). You can also select multiple target images in the image list, right-click and select Paste Mask(s) to paste them in batches.

  • Global mask: The mask applies to all images.

Labeling Eraser Tool

The Labeling Eraser Tool can be used to erase the labeled region.

tools introduction eraser

  1. Click the Labeling Eraser Tool icon tools introduction eraser icon (or press E on the keyboard).

  2. Press and hold the left mouse button in the selection area and move in any direction.

    Adjust the slider to change the eraser size.

Mask Eraser Tool

The Mask Eraser Tool can be used to erase the masks.

tools introduction mask eraser

  1. Right-click the Labeling Eraser Tool icon tools introduction eraser icon, and then click the Mask Eraser Tool icon tools introduction mask eraser icon (or press Shift+E on the keyboard).

  2. Press and hold the left mouse button in the selection area and move in any direction.

    Adjust the slider to change the eraser size.

Grid Cutting Tool

In industrial inspection scenarios, if the size of images captured by the camera is large, smaller defects may be inconspicuous. If you train the model directly, defects may be hard to detect. Use the Grid Cutting Tool to split large images into equally sized cell images based on the set ratio, making it easier to detect smaller defects. Defect labeling should be completed for all images before the application of this tool.

  1. Click the Grid Cutting Tool icon tools introduction grid cut icon(or press U on the keyboard).

  2. Set Rows and Cols. Two configuration methods:

    • Place the cursor in the parameter boxes and then scroll the mouse wheel.

    • Enter values in the parameter boxes.

  3. Use edge expansion (optional): If the labeled area is split across two grids after using the Grid Cutting Tool, you can drag the Edge Expansion slider in the toolbar and enlarge the edges of each cell image until the entire labeled area fits within a single cell image.

    • Avoid setting the number of rows and columns too high, as generating too many cell images after cutting can slow down inference.

    • The Edge Expansion feature applies to all images.

Grid Selection Tool

Right-click the Grid Cutting Tool icon tools introduction grid cut icon, click the Grid Selection Tool tools introduction grid select icon(or press I on the keyboard) and open it. The software selects cell images with defect labels by default. Selected cell images will be added to the training or validation set. You can also manually choose additional cell images with or without defects as needed. To preview the cut cell images, click the preview button in the upper-right corner of the selected image.

  • Select defects: Add all cut cell images containing defects to the training or validation set.

  • Select all: Add all cut cell images to the training or validation set, and mark the defect-free cell images as OK.

  • Clear selection: Clear the selections on cell images.

ROI Tool

You can use the ROI Tool to set the region of interest.

Setting the ROI can avoid interferences from the background.

  1. Click the ROI Tool icon tools introduction roi icon (or press O on the keyboard).

  2. Adjust the ROI frame in the selection region.

  3. Click the application icon tools introduction OK in the lower-right corner of the ROI to apply the current ROI or click the close icon tools introduction cancel to disable the ROI Tool.

  4. Click the Reset button in the upper left corner of the image to reset the ROI.

Select Tool

You can use Select Tool to scale images.

  1. In the labeling toolbar, click the Select Tool icon tools introduction select icon(or press F on the keyboard).

  2. Place the cursor in the labeling area of the image and use the mouse wheel to scroll forward to zoom in and scroll backward to zoom out.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.