Use the Unsupervised Segmentation Module

You are currently viewing the documentation for version 2.5.1. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Taking the bottom images of bottles (download) as an example, this section introduces you to how to use the Unsupervised Segmentation module to judge whether there are defects in an image.

You can also use your own data. The usage process is overall the same, but the labeling part is different.
  1. Create a new project and add the Unsupervised Segmentation module: Click New Project after you opened the software, name the project, and select a directory to save the project. Then, click example projects icon create in the upper-right corner and add the Unsupervised Segmentation module.

    example projects add project
  2. Import the image dataset: Extract the downloaded zip file. Select Import  Folder on the left of the interface to import the image dataset.

    example projects import images
  3. Select an ROI: Click the ROI Tool button example projects icon roi and adjust the frame to set an ROI that covers the target objects in the images. Then, click Apply on the top of the selection region to save the setting. Setting the ROI can avoid interferences from the background.

    The same ROI setting will be applied to all images, so it is necessary to ensure that objects in all images are within the set ROI.
    example projects roi
  4. Split the dataset into the training set and validation set: By default, 80% of the images in the dataset will be split into the training set, and the rest 20% will be split into the validation set. You can click example projects icon slider and drag the slider to adjust the proportion.

    example projects move image
  5. Label images: Use OK Label OK label tool or NG Label NG label tool on the toolbar to label images.

    example projects labeling
  6. Train the model: Keep the default training parameter settings and click Train to start training the model.

    If the training set contains images labeled as NG, these images will be automatically put into the validation set for validation during model training.
    example projects training chart
  7. Validate the model: After the training is completed, click Validate to validate the model and check the results.

    example projects result verification
    In the Validation tab, click Adjust thresholds, and in the pop-up dialog box, drag the vertical lines to adjust the thresholds. The green one is used to adjust the threshold of OK results, and the red one is used to adjust the threshold of NG results. Once the thresholds are adjusted, please re-validate the model.
  8. Export the model: Click Export and select a directory to save the trained model.

    example projects model files

The exported model can be used in Mech-Vision and Mech-DLK SDK. Click here to view the details.

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.