2D Target Object Deformation Inspection

You are currently viewing the documentation for a pre-release version (2.2.0). To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

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

Function Description

This step determines deformation status of workpieces in images through 2D template matching. By comparing workpiece features with templates and using configured deformation thresholds, it automatically determines whether workpieces have appearance deformation abnormalities.

Usage Scenario

This step is suitable for scenarios where workpiece appearance deformation (such as bending, stretching, indentation, and defects) must be verified against quality standards.

Input and Output

Input

Input Port Data Type Description

Image

Image

Workpiece image to be inspected.

2D Alignment Parameter Group

Pose2D

Synchronously adjusts pose of target region according to pose transformation of target objects.

Output

Output Port Data Type Description

Deformation Judgment Result

String

Deformation judgment result, OK or NG.

Deformation Check

Bool

Indicates whether workpieces pass deformation inspection. true for pass, false for fail.

Deformation Confidence

Number

Confidence of workpiece deformation. Higher confidence indicates smaller deformation.

Parameter Description

Parameter Description

ROI Settings

Description: Used to limit image-processing area. If ROI is not set, the step processes the entire image.

Adjustment instruction: After clicking the icon, drag with the left mouse button in data-visualization area to draw an ROI of corresponding shape.

Mask Settings

Description: Used to set one or multiple masks so image regions covered by masks are ignored during matching.

Adjustment instruction: After clicking the icon, add anchor points by left-clicking in data-visualization area to draw polygon masks.

Template Settings

Parameter Description

Select Template

Description: Used to set matching template.

Adjustment instruction: Open template editor and edit templates used for matching in this tool. After configuration is completed and template is saved, click and select a template from drop-down menu. For usage of this editor, refer to 2D Matching Template Editor.

This template editor supports only deformation-inspection templates.

Matching Settings

Parameter Description

Edge Polarity Sensitive

Description: Controls whether edge polarity must match the template during matching. Polarity indicates grayscale transition direction at edges, such as bright-to-dark or dark-to-bright.

Default value: Enabled.

Adjustment instruction: If data-acquisition conditions are consistent, enable this option to ensure matching accuracy; if differences are large, disable it to improve matching generalization.

Minimum Matching Score

Description: Used to determine whether matching results are valid. Results with matching scores lower than this value are discarded.

Default value: 50.0.

Valid Matching Threshold

Description: In target images, points with gradient magnitude greater than or equal to this threshold are treated as valid edge points and participate in matching-score statistics.

Default value: 10.

Lower Limit of Valid Matching Ratio

Description: Minimum ratio of validly matched edge points to total template edge points.

Default value: 50%.

Search Radius

Description: During pose correction, this is the radius of circular search area allowed when searching corresponding matching points in target image for each template feature point.

Default value: 8.

Increase this value appropriately when matching performance is poor.

Upper Limit of Overlap Ratio

Description: Used to filter duplicate matching results. When overlap ratio between two matching results exceeds this value, only the one with higher matching score is retained.

Default value: 50%.

Fill Ratio

When the object to be matched may partially exceed image boundaries, this parameter specifies allowed fill size as a ratio of template size. Filling can improve edge-matching success rate but usually increases computation.

Set this parameter when part of object to be matched is outside image. If the ratio of template size outside image after matching is higher than this value, matching is considered unsuccessful.

Default value: 0%.

Deformation Threshold Settings

Parameter Description

Deformation Threshold

Description: Used to determine whether workpiece deformation exceeds allowable range. If deformation confidence is greater than or equal to this threshold, result is judged as OK; otherwise as NG.

Default value: 0.50.

Adjustment instruction: Configure 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.