Class InspectionEngine<TOption, UResult>
Inspection을 수행하는 Engine의 추상 구현체입니다. Engine이 사용 가능한 상태가 되도록 준비하는것을 지원합니다.
Inheritance
Inherited Members
Namespace: SaigeVision.Net.V2
Assembly: SaigeVision.Net.V2.dll
Syntax
public abstract class InspectionEngine<TOption, UResult> : IInspectionEngine<TOption, UResult>, IDisposable where TOption : IInspectionOption where UResult : IInspectionResult
Type Parameters
| Name | Description |
|---|---|
| TOption | 검사 옵션 타입 |
| UResult | 검사 결과 타입 |
Remarks
InspectionEngine<TOption, UResult>은 지정된 모델에서 범용적으로 사용되는 데이터들을 읽고 준비 하는것이 주 목적입니다.
그외 Inspection에 필요한 지원 함수들이 포함됩니다.
Properties
| Improve this Doc View SourceResults
Declaration
public UResult[] Results { get; }
Property Value
| Type | Description |
|---|---|
| UResult[] |
Methods
| Improve this Doc View SourceCheckLicenseInferenceHandle()
License 상태를 확인할 수 있는 기능입니다.
Declaration
public bool CheckLicenseInferenceHandle()
Returns
| Type | Description |
|---|---|
| bool |
Dispose()
메모리를 해제합니다
Declaration
public void Dispose()
~InspectionEngine()
Declaration
protected ~InspectionEngine()
GetInferenceOption()
추론에 필요한 옵션 값을 받아 옵니다.
Declaration
public abstract TOption GetInferenceOption()
Returns
| Type | Description |
|---|---|
| TOption | 엔진별 옵션 정보가 담겨있는 클래스입니다 |
GetModelInfo()
모델 정보가 담긴 클래스입니다.
Declaration
public ModelInfo GetModelInfo()
Returns
| Type | Description |
|---|---|
| ModelInfo | 모델정보 |
GetModuleVersion()
모듈에 대한 정보를 받아볼 수 있습니다.
Declaration
public string GetModuleVersion()
Returns
| Type | Description |
|---|---|
| string | 모듈정보 |
GetResult()
Declaration
public abstract UResult GetResult()
Returns
| Type | Description |
|---|---|
| UResult |
GetResults()
Declaration
public abstract UResult[] GetResults()
Returns
| Type | Description |
|---|---|
| UResult[] |
Inspection(SrImage)
Declaration
public UResult Inspection(SrImage image)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | image |
Returns
| Type | Description |
|---|---|
| UResult |
Inspection(SrImage[])
추론을 진행합니다.
SrImage에 대한 배열 크기는 최초 batch 사이즈와 같거나 작아야 합니다.
Declaration
public UResult[] Inspection(SrImage[] images)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage[] | images |
Returns
| Type | Description |
|---|---|
| UResult[] | 추론에 대한 결과값을 받아옵니다 |
InspectionAsync(SrImage)
image에 대한 검사를 진행합니다.
Declaration
public Task<UResult> InspectionAsync(SrImage image)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | image | 검사할 이미지. |
Returns
| Type | Description |
|---|---|
| Task<UResult> |
InspectionAsync(SrImage[])
images에 대한 검사를 진행합니다.
Declaration
public Task<UResult[]> InspectionAsync(SrImage[] images)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage[] | images | 검사할 이미지. |
Returns
| Type | Description |
|---|---|
| Task<UResult[]> |
SetHandleMetadata(string, string)
데이터가 수집되는 경우 수집된 이미지에 대한 메타데이터를 설정합니다.
한 번 설정하면 계속 유지됩니다.
Declaration
public void SetHandleMetadata(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | 메타데이터의 키 입니다. 모니터링 시스템에서 설정된 키만 반영 됩니다. |
| string | value | 메타데이터의 값 입니다. 모니터링 시스템에서 설정된 타입으로 해석됩니다. |
SetInferenceMetadata(string, string)
데이터가 수집되는 경우, 수집된 이미지에 대한 일회성 메타데이터를 설정합니다.
Declaration
public void SetInferenceMetadata(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | 메타데이터의 키 입니다. 모니터링 시스템에서 설정된 키만 반영 됩니다. |
| string | value | 메타데이터의 값 입니다. 모니터링 시스템에서 설정된 타입으로 해석됩니다. |
SetInferenceOption(TOption, bool)
추론에 필요한 옵션 갓을 설정 합니다.
Declaration
public abstract void SetInferenceOption(TOption option, bool writeModelFile = false)
Parameters
| Type | Name | Description |
|---|---|---|
| TOption | option | 엔진별 옵션 정보가 담겨있는 클래스. |
| bool | writeModelFile | 설정한 옵션값을 모델 파일에 덮어 씁니다 |
SetResultMetadata(string, string)
데이터가 수집되는 경우, 수집된 이미지에 대한 일회성 검사 결과 메타데이터를 설정합니다.
Declaration
public void SetResultMetadata(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | 메타데이터의 키 입니다. 모니터링 시스템에서 설정된 키만 반영 됩니다. |
| string | value | 메타데이터의 값 입니다. 모니터링 시스템에서 설정된 타입으로 해석됩니다. |