AI Classification (Front/Back or Presence/Absence) Tool
Function Introduction
The AI Classification (Front/Back or Presence/Absence) Tool is an efficient visual binary-classification tool for custom training with two classes: OK and NG. By following a wizard workflow, you can quickly complete the full process from image acquisition to model inference. Typical scenarios include front/back error-proofing and presence/absence detection for a single workpiece type.
-
Capture Images: Capture image data for training. Include representative production conditions and keep image quality and diversity high.
-
Set Target Region: Set ROI on captured images and accurately frame target region for labeling and training.
-
Label Images: Label target regions as OK or NG. Label diverse samples for each class.
-
Train and Validate Model: Train with labeled images, validate results, and perform additional training if needed until model performance meets requirements.
Workflow
After opening the tool, click New at the upper-right of the model list to create a new model workflow.
Capture Images
-
Ensure the input port of current step is connected to image data.
-
When the tool opens, one image is captured automatically. Click Capture Image to capture additional images.
|
When capturing images, cover typical production variations:
Diverse images improve model robustness and judgment accuracy. |
Set Target Region
After capturing images, set ROI for labeling and training.
|
If input exists on the |
-
Click Edit to open target-region settings.
-
Set target region with rectangle or circle selection tools.
-
Optionally set mask region to exclude glare, shadow, or fixed background interference.
-
Click Save and Use to apply region configuration.
|
|
If target and mask layers completely overlap, only the top layer is editable.
|
Label Images
-
Click Edit to enter labeling.
-
Select target ROI and click Label Image for class OK or NG.
-
Capture more images and repeat labeling.
|
The tool uses fixed classes
|
|
-
Click Save and Use after labeling.
Train and Validate Model
-
Train model: Click Train and wait for completion.
-
Validate model: Click Validate and review or set these parameters:
| Parameter | Description |
|---|---|
Validation Result |
Shows judgment result (OK/NG). |
Time Cost |
Inference time per run (ms). |
Confidence Threshold |
Minimum confidence for OK. Results lower than threshold are judged as NG. Default value: 0.5 |
Judgment Mode |
For multiple ROIs: * All OK: result is OK only when all ROIs are OK. * At Least One OK: result is OK when any ROI is OK. Default value: All OK. |
Heatmap |
Displays model attention regions on image when enabled. Default value: Disabled. |
-
Additional training (optional): If validation is unsatisfactory, click Additional Training, label misclassified/missing samples, save, and retrain. Repeat train-validate-additional-training cycle until expected performance is reached.
|
Additional training is incremental optimization on top of current model, not retraining from scratch. |
-
Save and apply model: Click Save and Use. After closing the tool, select this model in
Model Nameparameter to use it in inference steps.