2D Target Object Deformation Check
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.
|
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.
|
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.
|
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.
|
||
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.
|
||
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.
|
||
Min Valid Match Ratio |
Parameter description: The minimum ratio of valid matched edge points to the total number of edge points in the template.
|
||
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
|
||
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.
|
||
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.
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.
|