Struct SaigeTextFormatting
(OCR) 인식하고자 하는 글자의 포맷을 지정하는 옵션입니다.
글자 수에 관계 없이 인식하고자 하는 글자집합을 설정하는 방식과,
글자의 위치별로 인식하고자 하는 글자집합을 설정하는 두 가지 방식이 있습니다.
Text Formatting 방식과 설정 방법은 다음과 같습니다.
글자 수에 관계 없이 글자 집합을 지정하는 방식 (By Character Set)
length값을 0으로 설정합니다.- 각 문자집합 bool 배열의 첫 번째 값을 지정합니다.
- 예시: 영소문자, 숫자만 인식하는 경우
SaigeInferenceOption option;
option.textFormatting.length = 0;
option.textFormatting.engLower[0] = true;
option.textFormatting.engUpper[0] = false;
option.textFormatting.kor[0] = false;
option.textFormatting.number[0] = true;
option.textFormatting.symbol[0] = false;
글자 수와 패턴을 지정하는 방식(By Character Pattern)
length값을 0 초과, MaxLenOfTextFormatting 이하로 설정합니다.- 각 문자집합 bool 배열의 0 ~
length-1까지의 값을 지정합니다. - 예시: 000가1234 (숫자 3자리, 한글 1자리, 숫자 4자리)
SaigeInferenceOption option;
option.textFormatting.length = 8;
option.textFormatting.number[3] = false;
option.textFormatting.kor[3] = true;
Inherited Members
Namespace: SaigeVision.Net.Core.V2
Assembly: SaigeVision.Net.Core.V2.dll
Syntax
public struct SaigeTextFormatting
Fields
| Improve this Doc View SourceengLower
영소문자를 포함하는지 여부를 지정하는 변수입니다.
Declaration
public bool[] engLower
Field Value
| Type | Description |
|---|---|
| bool[] |
engUpper
영대문자를 포함하는지 여부를 지정하는 변수입니다.
Declaration
public bool[] engUpper
Field Value
| Type | Description |
|---|---|
| bool[] |
kor
한글을 포함하는지 여부를 지정하는 변수입니다.
지원하는 한글집합은 KSC5601을 지원하며 예외적인 글자도 추가될 수 있습니다.
Declaration
public bool[] kor
Field Value
| Type | Description |
|---|---|
| bool[] |
length
인식하려는 글자의 수를 지정합니다.
0인 경우 글자 수에 관계 없는 옵션을 의미합니다.
Declaration
public int length
Field Value
| Type | Description |
|---|---|
| int |
number
숫자를 포함하는지 여부를 지정하는 변수입니다.
Declaration
public bool[] number
Field Value
| Type | Description |
|---|---|
| bool[] |
symbol
기호를 포함하는지 여부를 지정하는 변수입니다.
지원하는 기호의 종류는 다음과 같습니다.
.,'"·●°_~-+±=*※#%&@:/!?(){}[]<>
Declaration
public bool[] symbol
Field Value
| Type | Description |
|---|---|
| bool[] |