Class OCREngine
OCR를 수행할 수 있는 Engine입니다
Inherited Members
Namespace: SaigeVision.Net.V2.OCR
Assembly: SaigeVision.Net.V2.dll
Syntax
public sealed class OCREngine : InspectionEngine<OCROption, OCRResult>, IInspectionEngine<OCROption, OCRResult>, IDisposable
Constructors
| Improve this Doc View SourceOCREngine(string, int, bool, Size?)
생성자입니다
Declaration
public OCREngine(string model, int gpuNumber, bool useOptimize = false, Size? imageSize = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | model | .saigeocr 모델파일의 경로 |
| int | gpuNumber | 추론에 사용할 장치의 인덱스 |
| bool | useOptimize | 최적화 적용하는 플래그. |
| Size? | imageSize | 추론할 때의 이미지 너비와 높이를 설정 |
See Also
Methods
| Improve this Doc View SourceGetInferenceOption()
검사에 필요한 옵션값을 가져옵니다
Declaration
public override OCROption GetInferenceOption()
Returns
| Type | Description |
|---|---|
| OCROption | 검사에 필요한 옵션값 |
Overrides
See Also
| Improve this Doc View SourceGetResult()
검사 결과를 받아오는 함수
Declaration
public override OCRResult GetResult()
Returns
| Type | Description |
|---|---|
| OCRResult | 검사 결과가 담겨있는 값 |
Overrides
See Also
| Improve this Doc View SourceGetResults()
검사 결과를 받아오는 함수
Declaration
public override OCRResult[] GetResults()
Returns
| Type | Description |
|---|---|
| OCRResult[] | 검사 결과가 담겨있는 배열값 |
Overrides
See Also
| Improve this Doc View SourceSetInferenceOption(OCROption, bool)
검사에 필요한 옵션값을 설정합니다
Declaration
public override void SetInferenceOption(OCROption option, bool writeModelFile = false)
Parameters
| Type | Name | Description |
|---|---|---|
| OCROption | option | 옵션을 설정할 값 |
| bool | writeModelFile | 모델파일에 옵션값을 덮어 씁니다. |