深度 OCR 配置(非循环写入)

<< 点击显示目录 >>

主页  mappVision帮助助手 > 机器视觉帮助 > mapp Vision  > 编程 > 视觉功能 > 深度 OCR >

深度 OCR 配置(非循环写入)

信息:

本节介绍 MVTec 的 HALCON 22.11 机器视觉软件库中包含的参数。

 

信息:

这些参数可直接在 mapp Vision HMI 应用程序中更改(参见配置视觉功能)。

 

信息:

决定 POWERLINK 帧长度的单个配置参数只能在 AS 软件的配置过程中更改(即循环更改)。因此,这些参数只能在运行时读取,并标识为常量。

参数

类型

取值范围

说明

循环

非循环

常量

最大字符串大小/MaxStringSize

UCHAR

1 至 255

单词中的最大字符数

默认值:27

 

R/W1

最大结果数/NumResultsMax

UCHAR

1 至 255

最大结果数(字)

默认值:5

 

R/W1

配置参数

搜索角度/SearchAngle

INT16

-0至35999

搜索方向 0° 至 +359.99°,增量为 1/100°。

 

R/W

1

该配置参数在运行时保持不变,此时只能 "读取"。

常数

最大字符串大小/MaxStringSize

运行时不可修改的变量。只有在 AS 软件上下文中才需要。保留内存块的最大数量。单词中的最大字符数。

如果该值大于 27,函数处理时间将增加。每 27 个字符的 FunctionProcessingTime 预计会增加相同的时间。

对于较长的句子和固定的空格或单词长度,每个单词应使用一个 ROI。如果无法做到这一点,且单词数超过 27 个字符,则算法会在内部自动划分 ROI。如果使用这一特征,则必须确保字符与背景的良好对比度以及背景的均匀性!

字符与背景的极性可以是白底黑字或黑底白字。在拉伸的 ROI 中,极性不能改变。

最大结果数/NumResultsMax

运行时无法修改的变量。仅在 AS 软件上下文中需要使用。保留内存块的最大数量。最大分割区域(线)数。

信息:

MaxStringSize 和 NumResultsMax 的乘积必须小于 1490,以免超过 POWERLINK 框架的最大长度。

搜索角度/SearchAngle

搜索方向从 0° 到 +359.99°,增量为 1/100°。

搜索角度 0° 表示文本水平对齐。

如果文本逆时针旋转,SearchAngle 将发生正向变化。如果文本顺时针旋转,SearchAngle 将发生负向变化。


Information:

This section describes the included parameters from the HALCON 22.11 machine vision software library from MVTec.

 

Information:

These parameters can be changed directly in the mapp Vision HMI application (see Configuring vision functions).

 

Information:

Individual configuration parameters that determine the length of a POWERLINK frame can only be changed during configuration in Automation Studio (i.e. acyclically). These parameters can therefore only be read at runtime and are identified as constants.

Parameters

Type

Range of values

Description

Cyclic

Acyclic

Constants

MaxStringSize

UCHAR

1 to 255

Maximum number of characters in a word

Default value: 27

 

R/W1

NumResultsMax

UCHAR

1 to 255

Maximum number of results (words)

Default value: 5

 

R/W1

Configuration parameters

SearchAngle

INT16

-0 to 35999

Search direction from 0° to +359.99° in increments of 1/100 degree.

 

R/W

1

This configuration parameter is constant at runtime and in this case only "Read".

Constants

MaxStringSize

Variable that cannot be modified at runtime. Only necessary in the Automation Studio context. Reserves the maximum number of memory blocks. Maximum number of characters in a word.

If this value is configured >27, the FunctionProcessingTime will increase. Per 27 characters an equally increase of the FunctionProcessingTime can be expected.

For longer sentences and constant spaces or word lengths, one ROI should be used per word. If this is not possible and the words exceed the number of 27 characters, the ROIs are automatically divided internally in the algorithm. If this feature is used, a good contrast of the characters to the background must be ensured, as well as a homogeneous background!

The polarity of the characters to the background can be either black on white or white on black. In a stretched ROI the polarity must not change.

NumResultsMax

Variable that cannot be modified at runtime. Only necessary in the Automation Studio context. Reserves the maximum number of memory blocks. Maximum number of segmented regions (lines).

Information:

The product of MaxStringSize and NumResultsMax must be less than 1490 to not exceed the maximum length of a POWERLINK frame.

SearchAngle

Search direction from 0° to +359.99° in increments of 1/100 degree.

SearchAngle 0° means a horizontally aligned text.

If text is rotated counterclockwise, SearchAngle is changed positively. If the text is rotated clockwise, SearchAngle is changed negatively.