AI Optical Character Recognition Tool
Function Introduction
The AI Optical Character Recognition Tool is a deep-learning visual reading tool for custom character-recognition tasks. It supports a wizard workflow from image capture to inference optimization, and is suitable for difficult scenarios such as engraved metal text, curved-surface text, and complex backgrounds.
The tool includes a pretrained model. After target-region setup, you can run inference directly and then optimize by additional training as needed.
-
Capture Images: Collect representative images for validation and optimization.
-
Set Target Region: Set rectangular or annular ROI to focus on text area.
-
Validate and Optimize: Validate recognition, configure judgment rules, and optionally perform additional training.
Workflow
After opening the tool, click New in model list to create a new model workflow.
Capture Images
-
Ensure image input is connected.
-
One image is captured automatically when entering the tool. Click Capture Image for more images.
|
Include typical variations in capture data:
|
Set Target Region
|
If |
-
Click Edit to open region settings.
-
Set single-character size by adjusting the default orange rectangle to match actual character size.
-
Set target region:
| Mode | Description |
|---|---|
Entire Image as Target Region |
ROI covers whole image. |
Custom Target Region |
Draw rectangle or annulus ROI according to character layout. |
-
Optionally set mask region to exclude glare/shadow/background interference.
-
Click Save and Use to apply settings.
Validate and Optimize Model
After setting target regions, click Validate.
Set Validation Parameters and Check Results
| Parameter | Description |
|---|---|
Validation Result |
Displays OCR output. If judgment is enabled, result is shown as OK/NG based on configured rules. |
Time Cost |
Inference time per run (ms). |
Confidence Threshold |
Minimum confidence for character recognition. Results below threshold are considered failed recognition. Default value: 0.5 |
Character Content Correction |
Constrains character types of leading positions using wildcard template. Supported wildcards: |
Recognized Character Types |
Specifies which character types are considered in downstream processing. Value list: uppercase letters, lowercase letters, digits, symbols. |
Row Delimiter |
Delimiter used when multi-line text is recognized. |
Enable Judgment |
Enables rule-based pass/fail check for recognition output. Supports: * Character-count check. * Character-content check (manual template or global-variable baseline string). |
Additional Training (Optional)
If validation shows misrecognition, missed characters, or false positives, use additional training:
-
Click Additional Training.
-
Add
Recognition Contentfor correction orExclusion Contentfor false-positive suppression. -
Click Train to retrain with additional data.
-
Return to validation and iterate until results are acceptable.
-
Save and apply model: Click Save and Use, then select this model in
Model Namefor subsequent OCR inference.