Class DetectionEngine
Detection을 수행할 수 있는 Engine입니다
Inherited Members
Namespace: SaigeVision.Net.V2.Detection
Assembly: SaigeVision.Net.V2.dll
Syntax
public sealed class DetectionEngine : InspectionEngine<DetectionOption, DetectionResult>, IInspectionEngine<DetectionOption, DetectionResult>, IDisposable
Constructors
View SourceDetectionEngine(string, int, bool)
생성자입니다
Declaration
public DetectionEngine(string model, int gpuNumber, bool useOptimize = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | model | .saigedet 모델파일의 경로 |
| int | gpuNumber | 추론에 사용할 장치의 인덱스 |
| bool | useOptimize | 최적화 적용하는 플래그. 추론 최적화를 적용하면 추론 시간이 단축되지만, 추론 결과가 약간 달라질 수 있습니다. |
See Also
Methods
View SourceGetInferenceOption()
검사에 필요한 옵션값을 가져옵니다
Declaration
public override DetectionOption GetInferenceOption()
Returns
| Type | Description |
|---|---|
| DetectionOption | 검사에 필요한 옵션값 |
Overrides
See Also
View SourceGetResult()
검사 결과를 받아오는 함수
Declaration
public override DetectionResult GetResult()
Returns
| Type | Description |
|---|---|
| DetectionResult | 검사 결과가 담겨있는 값 |
Overrides
See Also
View SourceGetResults()
검사 결과를 받아오는 함수
Declaration
public override DetectionResult[] GetResults()
Returns
| Type | Description |
|---|---|
| DetectionResult[] | 검사 결과가 담겨있는 배열값 |
Overrides
See Also
View SourceSetInferenceOption(DetectionOption, bool)
검사에 필요한 옵션값을 설정합니다
Declaration
public override void SetInferenceOption(DetectionOption option, bool writeModelFile = false)
Parameters
| Type | Name | Description |
|---|---|---|
| DetectionOption | option | 옵션을 설정할 값 |
| bool | writeModelFile | 모델파일에 옵션값을 덮어 씁니다. |