Error-Proofing Check (Front/Back or Presence/Absence)
This page describes the configuration workflow for front/back and presence/absence classification. The function is used to determine whether the target object orientation is correct or whether the target object exists, helping prevent missing assembly or reversed assembly.
Click Configuration Wizard, select Error-Proofing Check, then choose Front/Back or Presence/Absence Classification.
Workflow
The complete workflow includes four stages:
-
Image Preprocessing: Improve image quality through color conversion, enhancement, denoising, and morphology operations.
-
Pose Alignment: Align target pose to template to reduce position/angle variation.
-
Error-Proofing Check: Configure ROI, labeling, and decision rules for automatic OK/NG classification.
-
General Settings: Configure output ports for production-line integration.
Image Preprocessing
Before recognition, you can enable Convert Image Color Space or Image Preprocessing to improve target features.
Convert Image Color Space
Convert input image from one color space to another (for example, BGR to Gray or BGR to HSV) to highlight features for subsequent processing.
For details, see Convert Image Color Space.
Image Preprocessing Parameters
Supports enhancement, denoising, morphology, grayscale inversion, and edge extraction.
For details, see Image Preprocessing.
Pose Alignment
After preprocessing, configure pose alignment so target pose in current image is corrected to match template pose.
Add Alignment Settings
Create a parameter group for pose alignment. Multiple groups are supported and independent from each other.
Click Add to create a new group, choose alignment mode, and configure parameters.
Supported modes:
-
No Alignment: Use input image directly without pose correction.
-
2D Alignment: Align through translation/rotation with edge-based matching. See 2D Alignment.
-
2D Blob Alignment: Align based on selected Blob centroid and principal axis. See 2D Blob Alignment.
After creating a group, right-click group name (or use action button) to rename, delete, or duplicate.
2D Alignment
2D Alignment uses translation and rotation to align target object in input image to template.
Set Recognition Region
Set effective alignment area. Region should fully cover target object with proper margin.
-
Whole Image as Recognition Region: Use entire image.
-
Custom Recognition Region: Manually draw region and ignore unrelated background.
Recognize Target Object
Configure Target Template
After region setup, choose/edit template in 2D template editor by clicking Edit.
Select representative and stable edge features to ensure unique and accurate matching. For details, see 2D Matching Template Editor.
| Click Update after each template edit. |
Adjust Recognition Parameters
Click Run Step to view matching result and tune parameters if needed.
For details, see 2D Alignment.
Click Next to continue.
2D Blob Alignment
2D Blob Alignment detects blobs, selects target Blob by geometric features, then aligns centroid and principal axis.
Set Recognition Region
Set effective area with sufficient margin. Rectangle and circle region modes are supported, and multiple regions can be mixed.
Recognize Target Object
Tune parameters according to target features.
For details and tuning examples, see 2D Blob Alignment.
Error-Proofing Check
After alignment, configure ROI, labeling, and judgment rules for automatic OK/NG classification.
Capture Images
-
Ensure image input is connected.
-
One image is captured automatically when entering the tool. Click Capture Image to capture more images.
|
Use diverse samples that cover position/angle changes, lighting/background changes, and appearance variations (for example, deformation, stain, scratch, batch color difference). |
Set Target ROI
-
Click Edit to enter ROI configuration.
-
Draw ROI (rectangle or circle) to cover target features and avoid unrelated background.
-
(Optional) Configure masked area to exclude glare, shadow, or fixed interference.
-
Click Save and Use.
Label Images
-
Click Edit to enter labeling.
-
Select each ROI and label as OK or NG.
-
Continue capture + labeling until both classes are sufficiently covered.
-
Click Save and Use.
Train and Validate Model
-
Click Train and wait for completion.
-
Click Validate to verify results and key parameters:
| Parameter | Description |
|---|---|
Validation Result |
Shows OK or NG classification result. |
Time Cost |
Inference time for a single sample (ms). |
Confidence Threshold |
Minimum confidence for classifying as OK. Values below threshold are classified as NG. |
After validation passes, click Next to continue.