与后续 OCR 检测对齐

<< 点击显示目录 >>

主页  mappVision帮助助手 > 机器视觉帮助 > mapp Vision  > 用例 >

与后续 OCR 检测对齐

本用例描述了创建对齐源以及随后的 OCR 检测。

以巧克力棒的包装为例。使用 ECC200 DataMatrix 代码作为对齐源,并通过视觉功能 OCR 读取保质期。

schokoladenriegel-verpackung-ablaufdatum

Vision 人机界面的教学过程

在整个图像上配置执行 ROI。

参数设置如下:

启用 = 1

NumSearchMax = 1

SymboleType = 50(数据矩阵 ECC 200)

对齐 = 1(设置参考)。

单击执行按钮。创建对齐源的参考数据。

anwendungsfall01

对齐 = 2(生成对齐数据)

单击 "执行 "应用生成的对齐数据。

anwendungsfall02

切换到视觉功能 OCR

设置参数:

启用 = 1

NumSearchMax = 1

参数模式 = 1(用户自定义)

然后设置 MinContrast = 20。其余参数保持默认值。

设置执行 ROI(针对要搜索的文本进行优化)。

anwendungsfall03

最后测试 "视觉功能 "是否能在物体的不同旋转角度下工作。

anwendungsfall04

anwendungsfall05


This use case describes the creation of an alignment source with subsequent OCR detection.

The packaging of a chocolate bar is used as an example. An ECC200 DataMatrix code is used as an alignment source and the expiration date is read with the Vision Function OCR.

schokoladenriegel-verpackung-ablaufdatum

Teaching process in the Vision HMI:

Execution ROI is configured on the entire image.

Parameters are set as follows:

Enable = 1

NumSearchMax = 1

SymboleType = 50 (Data Matrix ECC 200)

Alignment = 1 (Set Reference).

Click the Execute button. The reference data for the alignment source is created.

anwendungsfall01

Alignment = 2 (Generate Alignment Data)

Click Execute to apply the generated alignment data.

anwendungsfall02

Switch to Vision Function OCR

Set the rarameters:

Enable = 1

NumSearchMax = 1

ParameterMode = 1 (user definded)

Then set MinContrast = 20. The remaining parameters remain at the default values.

Set the Execution ROI (optimized for the text to be searched).

anwendungsfall03

Finally test if the Vision Function works with different rotations of the object.

anwendungsfall04

anwendungsfall05