Class OCROption
검사에 필요한 옵션을 가져오거나 설정할 수 있습니다.
Implements
Inherited Members
Namespace: SaigeVision.Net.V2.OCR
Assembly: SaigeVision.Net.V2.dll
Syntax
public class OCROption : InspectionOption, IInspectionOption
Constructors
| Improve this Doc View SourceOCROption(bool, int, double, int, int, int, double, TextFormatting, int, int, OverSizeImageFlags)
Declaration
public OCROption(bool calcTime, int batchSize, double polygonScoreThreshold, int textSizeRangeMin, int textSizeRangeMax, int maxNumOfTextObjects, double textScoreThreshold, TextFormatting textFormatting, int inspectionSizeWidth, int inspectionSizeHeight, OverSizeImageFlags oversizedImageHandling)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | calcTime | 추론 API 실행에 소요되는 시간을 세분화하여 출력할지 결정합니다. |
| int | batchSize | 추론을 한 번 수행할 때 추론하는 이미지의 개수입니다. |
| double | polygonScoreThreshold | `검출된 글자영역인 polygon score 값이 이 값보다 작으면 최종 결과에서 제외됩니다. |
| int | textSizeRangeMin | 검출된 글자영역 크기의 유효범위 하한값입니다. |
| int | textSizeRangeMax | 검출된 글자영역 크기의 유효범위 상한값입니다. |
| int | maxNumOfTextObjects | 한 번에 출력할 수 있는 글자 오브젝트의 최대 검출 개수입니다. |
| double | textScoreThreshold | 인식된 글자 오브젝트의 text score 값이 이 값보다 작으면 최종 결과에서 제외됩니다. |
| TextFormatting | textFormatting | 인식하고자 하는 글자의 포맷을 지정하는 옵션입니다. |
| int | inspectionSizeWidth | 추론할 때의 이미지 너비를 설정합니다. |
| int | inspectionSizeHeight | 추론할 때의 이미지 높이를 설정합니다. |
| OverSizeImageFlags | oversizedImageHandling |
|
Properties
| Improve this Doc View SourceInspectionSizeHeight
추론할 때의 이미지 높이를 설정합니다. 이미지 원본의 너비와 상관없이, 리사이즈와 패딩을 통해 이 값으로 너비를 조정해 추론을 수행합니다.
Declaration
public int InspectionSizeHeight { get; }
Property Value
| Type | Description |
|---|---|
| int |
InspectionSizeWidth
추론할 때의 이미지 너비를 설정합니다. 이미지 원본의 너비와 상관없이, 리사이즈와 패딩을 통해 이 값으로 너비를 조정해 추론을 수행합니다.
Declaration
public int InspectionSizeWidth { get; }
Property Value
| Type | Description |
|---|---|
| int |
MaxNumOfTextObjects
한 번에 출력할 수 있는 글자 오브젝트의 최대 검출 개수입니다.
0 이하의 값은 제한 없음을 의미합니다.
Declaration
public int MaxNumOfTextObjects { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
OversizedImageHandling
SaigeHandleConfig에서 지정한 inspection size보다 큰 이미지를 처리하는 방법입니다.
DO_NOT_INSPECT, RESIZE_TO_FIT, CROP_INTO_TILES 세 가지 옵션이 존재합니다.
Declaration
public OverSizeImageFlags OversizedImageHandling { get; set; }
Property Value
| Type | Description |
|---|---|
| OverSizeImageFlags |
PolygonScoreThreshold
검출된 글자영역인 polygon score 값이 이 값보다 작으면 최종 결과에서 제외됩니다.
Declaration
public double PolygonScoreThreshold { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
TextFormatting
인식하고자 하는 글자의 포맷을 지정하는 옵션입니다.
Declaration
public TextFormatting TextFormatting { get; set; }
Property Value
| Type | Description |
|---|---|
| TextFormatting |
TextScoreThreshold
인식된 글자 오브젝트의 text score 값이 이 값보다 작으면 최종 결과에서 제외됩니다.
Declaration
public double TextScoreThreshold { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
TextSizeRangeMax
검출된 글자영역 크기의 유효범위 상한값입니다.
이 값보다 큰 글자는 최종 결과에서 제외됩니다.
Declaration
public int TextSizeRangeMax { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
TextSizeRangeMin
검출된 글자영역 크기의 유효범위 하한값입니다.
이 값보다 작은 글자는 최종 결과에서 제외됩니다.
Declaration
public int TextSizeRangeMin { get; set; }
Property Value
| Type | Description |
|---|---|
| int |