Class InspectionEngine<TOption, UResult>
Inspection을 수행하는 Engine의 추상 구현체입니다. Engine이 사용 가능한 상태가 되도록 준비하는것을 지원합니다.
Inheritance
object
InspectionEngine<TOption, UResult>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
View SourceResults
Declaration
public UResult[] Results { get; }
Property Value
| Type | Description |
|---|---|
| UResult[] |
Methods
View SourceDispose()
메모리를 해제합니다
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 | 추론에 필요한 SrImage |
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[]> |
SetInferenceOption(TOption, bool)
Declaration
public abstract void SetInferenceOption(TOption option, bool writeModelFile = false)
Parameters
| Type | Name | Description |
|---|---|---|
| TOption | option | |
| bool | writeModelFile |
Implements
System.IDisposable