2D Target Object Deformation Check

You are currently viewing the documentation for the latest version (2.2.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.

Function

This Step is used to determine whether a target object in an image exhibits deformation using 2D template matching. The target object is compared against a reference template based on feature alignment, and the specified deformation threshold is applied to automatically classify the object as OK or NG.

Usage Scenario

This Step is suitable for scenarios where it is necessary to verify whether the appearance of target objects, such as bending, stretching, dents, or missing parts, meets quality standards.

Input and Output

Input

Input port Data type Description

Image

Image

Image of the target object to be checked.

2D Alignment Parameter Group

Pose2D

Used to adjust the ROI’s pose in sync with the target object’s pose changes.

Output

Output port Data type Description

Deformation Judgment Result

String

Deformation check result, OK or NG.

Deformation Check

Bool

Used to indicate whether the target object passes the deformation check. True indicates pass, and false indicates fail.

Deformation Confidence

Number

Confidence score of the deformation of the target object. A higher score indicates smaller deformation.

Parameter Description

Parameter Description

ROI Setting

Parameter description: This parameter is used to limit the image processing area. When ROI is not set, the Step processes the entire image.
Tuning instructions: Click the icon, then hold down the left mouse button and drag in the data visualization area to draw an ROI of the corresponding shape.

Mask Setting

Parameter description: This parameter is used to set one or more masks so that image areas covered by the masks are ignored during matching.
Tuning instructions: Click the icon, then left-click in the data visualization area to add anchor points and draw a polygon mask.

Template Settings

Parameter Description

Select Template

Parameter description: This parameter is used to set the matching template.

Tuning instructions: Open the Template Editor and edit the template used for matching in this tool. After the template is configured and saved, click to select the template from the drop-down list. For instructions on using this template editor, refer to 2D Template Editor.

This template editor supports editing only templates for deformation check.

Matching Settings

Parameter Description

Edge Polarity Sensitive

Parameter description: This parameter controls whether edge polarity must match the template. The polarity indicates the direction of intensity changes along the edges, e.g., light-to-dark or dark-to-light.
Default value: Enabled
Tuning instructions: If there is not a large disparity in the data acquisition scenarios, enable this option to ensure matching accuracy. If there is a large disparity, disable this option to enhance the matching generalization ability.

Min Matching Score

Parameter description: This parameter is used to determine whether a matching result is valid. Any result whose score is below this value will be discarded.
Default value: 50.0

Valid Matching Threshold

Parameter description: In the target image, points with gradient magnitudes greater than or equal to this threshold are considered valid edge points and participate in matching score calculation.
Default value: 10

Min Valid Match Ratio

Parameter description: The minimum ratio of valid matched edge points to the total number of edge points in the template.
Default value: 50%

Search Radius

Parameter description: The radius of the circular search area for finding corresponding matching points of each template feature point in the target image during pose refinement.

Default value: 8

When the matching effect is poor, you can appropriately increase this value.

Max Overlap Ratio

Parameter description: This parameter is used to filter out duplicate matching results. If there is an overlap between two matching results and the overlap ratio exceeds this value, only the result with the higher matching score will be retained.
Default value: 50%

Padding Ratio

Parameter description: This parameter specifies the ratio of allowed padded size to template size when the target object may be partially outside the image. Padding can recover edge matches that would otherwise fail, but generally increases computation.

When a part of the object to be matched is outside the image, padding is required. If the proportion of the template outside the image after matching exceeds this threshold, a matching failure will occur.

Default value: 0%

Deformation Threshold Settings

Parameter Description

Deformation Threshold

Parameter description: This parameter is used to determine whether the deformation of the target object exceeds the allowable range. If the deformation confidence is greater than or equal to this threshold, the result is judged as OK. If it is less than this threshold, the result is judged as NG.
Default value: 0.50
Tuning instructions: Set this parameter according to actual conditions.

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.