Interface IInspectionEngine<TOption, UResult>
InspectionEngine 의 추상체입니다.
Namespace: SaigeVision.Net.V2
Assembly: SaigeVision.Net.V2.dll
Syntax
public interface IInspectionEngine<TOption, UResult> where TOption : InspectionOption where UResult : InspectionResult
Type Parameters
| Name | Description |
|---|---|
| TOption | 엔진에 필요한 적절한 Option을 주입합니다 |
| UResult | 엔진에 필요한 적절한 Result를 주입합니다 |
Methods
View SourceDispose()
메모리를 해제합니다.
Declaration
void Dispose()
GetInferenceOption()
추론에 필요한 옵션 값을 받아 옵니다.
Declaration
TOption GetInferenceOption()
Returns
| Type | Description |
|---|---|
| TOption | 엔진별 옵션 정보가 담겨있는 클래스입니다 |
GetModelInfo()
모델 정보를 받아 옵니다.
Declaration
ModelInfo GetModelInfo()
Returns
| Type | Description |
|---|---|
| ModelInfo | 모델 정보가 담겨있는 클래스입니다 |
GetResult()
검사 후 결과 값을 받아옵니다.
Declaration
UResult GetResult()
Returns
| Type | Description |
|---|---|
| UResult |
GetResults()
검사 후 결과 값을 받아옵니다.
Declaration
UResult[] GetResults()
Returns
| Type | Description |
|---|---|
| UResult[] | InspectionResult 값 |
Inspection(params Bitmap[])
추론을 진행합니다. 추론에 대한 결과는 GetResult(s) 를 통해 확인할 수 있습니다.
Declaration
void Inspection(params Bitmap[] bmp)
Parameters
| Type | Name | Description |
|---|---|---|
| Bitmap[] | bmp | 추론에 필요한 이미지 |
Inspection(params string[])
추론을 진행합니다. 추론에 대한 결과는 GetResult(s) 를 통해 확인할 수 있습니다.
Declaration
void Inspection(params string[] imagePaths)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | imagePaths | 추론에 필요한 이미지 파일 경로 |
InspectionAsync(params Bitmap[])
bmp에 대한 검사를 비동기로 진행합니다.
Declaration
Task InspectionAsync(params Bitmap[] bmp)
Parameters
| Type | Name | Description |
|---|---|---|
| Bitmap[] | bmp | 추론에 필요한 이미지 |
Returns
| Type | Description |
|---|---|
| Task |
SetInferenceOption(TOption, bool)
추론에 필요한 옵션 갓을 설정 합니다.
Declaration
void SetInferenceOption(TOption option, bool writeModelFile = false)
Parameters
| Type | Name | Description |
|---|---|---|
| TOption | option | 엔진별 옵션 정보가 담겨있는 클래스. |
| bool | writeModelFile | 설정한 옵션값을 모델 파일에 덮어 씁니다 |