Work Gloves Inspection

The work gloves inspection solution applies deep learning models to locate the areas that require inspection on the gloves and to identify various types of defects based on their features. After images are acquired, use Mech-DLK to train the models, which can enhance the efficiency and accuracy of defect detection.

About the Models

Mech-DLK provides commonly used algorithm models for industrial inspection scenarios. This solution employs the following models for cascading to meet various inspection requirements.

  • Defect Segmentation: This model can accurately detect the location and shape of defects and segment them. It is suitable for small-sized defects. However, accurately labeling all defect areas is required during model training, which incurs high labeling costs. Additionally, it cannot detect defects that cannot be labeled or classify defects.

  • Object Detection: This model can locate, count, and classify defects. Compared to the Defect Segmentation model, this model has a lower labeling cost. However, it cannot provide precise contours of defects and does not perform well when the defects are small. Therefore, this model is commonly used for locating and counting defects in defect detection scenarios, rather than for direct defect detection.

  • Classification: This model can classify different images. It can be used when defect locating is not required and the defect features are distinct. The labeling cost is low, making it suitable for scenarios where defects are difficult to label and require classification. However, this model cannot locate defects and does not perform well when the defects are small.

Basic Information

The work gloves inspection solution aims to inspect the following types of defects:

Imbalanced finger coating Damage Anomaly Stain NG printing

finger coating

glove damage

foreign object

glove dirt

poor printing

This solution uses the Object Detection model to segment the gloves, printings, and fingers from the images. The Defect Segmentation and Classification models are then applied to process defects in these segmented areas.

The following figure shows the inspection workflow.

gloves workflow

Extensive Stains

large dirt detect

Defect features: Not required for precise locating of stains. The stains are large and easily identified.

Inspection solution:

  1. Use the Object Detection model to segment the gloves from the images.

  2. Use the Classification model to classify the gloves as NG (stained) or OK (unstained).

Minor Damages, Anomalies, and Stains

small defect detect

Defect features: The defects are small and can be labeled.

Inspection solution:

  1. Use the Object Detection model to segment the gloves from the images.

  2. Use the Defect Segmentation model to segment the damages, stains, and anomalies.

Imbalanced Finger Coatings

finger coating detect

Defect features: The area and shape of finger coatings are variable, making it difficult to directly label the defects during model training.

Inspection solution:

  1. Use the Object Detection model to segment the gloves from the images.

  2. Use the Object Detection model to segment the fingers from the gloves.

  3. Use the Defect segmentation model to segment the white areas (uncoated) on the fingers. Then, calculate the ratio of the length of this area to the length of the finger to determine whether the coating is excess or insufficient.

NG Printings

printing detect

Defect features: The printings are distinct in features. Not required for defect locating, only the classification of blurred and clear printings is needed.

Inspection solution:

  1. Use the Object Detection model to segment the printings from the images.

  2. Use the Classification model to classify the printings as NG (blurred) or OK (clear).

Solution Deployment

Train Models

Object Detection for Gloves and Printings

This model is used to segment the gloves and printings from the original images, allowing for precise defect processing in these areas.

  1. Create a project and add the Object Detection module.

    Click New Project in the interface, name the project, and select a directory to save the project. Click + in the upper right corner of the Modules section and add the Object Detection module.

  2. Import image data.

    In the upper-left corner of the interface, click Import/Export to import the acquired glove images.

  3. Create a label.

    In the Labeling tab, click + and create a label based on the object type.

    • For the glove model, create a glove label.

    • For the printing model, create a printing label.

    create label printing
  4. Label images.

    On the labeling toolbar, right-click polygon icon and then click rectangle icon (or press R on the keyboard). Long press the left mouse button in the selection region, move it in any direction, and then release the left mouse button to finish the rectangular selection.

    • For the glove model, label the gloves in the images.

    • For the printing model, label the printings in the images.

    label glove printing
    When labeling, ensure that the rectangular selection tightly encloses the target object, and avoid including irrelevant regions.
  5. Train the model.

    In the Training tab, keep the default training parameter settings and click Train to start training the model.

  6. Validate the model.

    After the training is completed, click Validate in the Validation tab to validate the model and check the results.

Object Detection for Fingers

After training the glove model, cascade a new Object Detection module to segment fingers.

  1. Cascade an Object Detection module.

    In the project interface of the Object Detection module for gloves, click the + button in the Modules section in the upper-right corner, and select Object Detection.

  2. Import image data.

    In the upper-left corner of the interface, click Import/Export  Import from Previous Module, select all validation results from the previous module, and click OK.

    import from gloves
  3. Create a label.

    In the Labeling tab, click + and create a finger label.

  4. Label images.

    On the labeling toolbar, right-click polygon icon and then click rectangle icon (or press R on the keyboard) to label each finger in the images.

    label finger
  5. Train the model.

    In the Training tab, keep the default training parameter settings and click Train to start training the model.

  6. Validate the model.

    After the training is completed, click Validate in the Validation tab to validate the model and check the results.

Classification for Extensive Stains

This model is used to classify the gloves as NG (stained) or OK (unstained), so that the stained gloves can be identified.

  1. Cascade the Classification module.

    In the project interface of the Object Detection module for gloves, click the + button in the Modules section in the upper-right corner, and select Classification.

  2. Import image data.

    In the upper-left corner of the interface, click Import/Export  Import from Previous Module, select all validation results from the previous module, and click OK.

  3. Create labels.

    In the Labeling tab, click + and create labels based on the object feature. In this module, create NG and OK labels.

  4. Label images.

    On the left-side labeling toolbar, select the labels to label the stained gloves as NG and the unstained gloves as OK. You can select multiple images and label them simultaneously.

    label dirty
  5. Train the model.

    In the Training tab, keep the default training parameter settings and click Train to start training the model.

  6. Validate the model.

    After the training is completed, click Validate in the Validation tab to validate the model and check the results.

Classification for NG Printings

This model is used to classify the printings segmented from the Object Detection model as NG (blurred) or OK (clear), so that the gloves with NG printings can be identified.

  1. Cascade the Classification module.

    In the project interface of the Object Detection module for printings, click the + button in the Modules section in the upper-right corner, and select Classification.

  2. Import image data.

    In the upper-left corner of the interface, click Import/Export  Import from Previous Module, select all validation results from the previous module, and click OK.

  3. Create labels.

    In the Labeling tab, click + and create labels based on the object feature. In this module, create NG and OK labels.

  4. Label images.

    On the left-side labeling toolbar, select the labels to label the blurred printings as NG and the clear printings as OK. You can select multiple images and label them simultaneously.

  5. Train the model.

    In the Training tab, keep the default training parameter settings and click Train to start training the model.

  6. Validate the model.

    After the training is completed, click Validate in the Validation tab to validate the model and check the results.

Defect Segmentation for Minor Defects

This model is used to label minor damages, anomalies, and stains on gloves.

  1. Cascade the Defect Segmentation module.

    In the project interface of the Object Detection module for gloves, click the + button in the Modules section in the upper-right corner, and select Defect Segmentation.

  2. Import image data.

    In the upper-left corner of the interface, click Import/Export  Import from Previous Module, select all validation results from the previous module, and click OK.

  3. Label images.

    You need to label OK and NG images.

    • For NG images, right-click the Polygon Tool and select a suitable tool to select the defect regions. During labeling, select the defects as precisely as possible with the tools to avoid including excessive non-defective areas.

    label defect
    • For OK images, select an image and click the OK Label on the labeling toolbar. The image will be labeled as OK.

    label ok
  4. Train the model.

    In the Training tab, keep the default training parameter settings and click Train to start training the model.

  5. Validate the model.

After the training is completed, click Validate in the Validation tab to validate the model and check the results.

Defect Segmentation for Imbalanced Finger Coatings

This model is used to segment the uncoated areas on the fingers to calculate the ratio of the coated areas, thus determining whether the coating is excess or insufficient.

  1. Cascade the Defect Segmentation module.

    In the project interface of the Object Detection module for fingers, click the + button in the Modules section in the upper-right corner, and select Defect Segmentation.

  2. Import image data.

    In the upper-left corner of the interface, click Import/Export  Import from Previous Module, select all validation results from the previous module, and click OK.

  3. Label images.

    You need to label the white areas on the fingers.

    label finger white
  4. Train the model.

    In the Training tab, keep the default training parameter settings and click Train to start training the model.

  5. Validate the model.

After the training is completed, click Validate in the Validation tab to validate the model and check the results.

Export Model Packages

After you train and validate the models, click Export. In the pop-up window, configure the parameters and click Export. Then, select a directory to save the exported model packages.

Deploy Models

You can use Mech-DLK SDK for secondary development to integrate deep learning inference functions into the quality control system (software) of the production line. Then, use the exported model packages for inference to obtain the inference results.

You can also use the Deep Learning Model Package Inference Step in Mech-Vision for model inference and to obtain inference results. To use Mech-Vision, a corresponding software license must be purchased.

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.