Class SegmentationEngine
Segmentation을 수행할 수 있는 Engine입니다
Inherited Members
Namespace: SaigeVision.Net.V2.Segmentation
Assembly: SaigeVision.Net.V2.dll
Syntax
public sealed class SegmentationEngine : InspectionEngine<SegmentationOption, SegmentationResult>, IInspectionEngine<SegmentationOption, SegmentationResult>, IDisposable
Constructors
| Improve this Doc View SourceSegmentationEngine(string, int, int, bool, Size?)
생성자입니다
Declaration
public SegmentationEngine(string model, int gpuNumber, int batchSize = 1, bool useOptimize = false, Size? size = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | model | .saigeseg 모델파일의 경로 |
| int | gpuNumber | 추론에 사용할 장치의 인덱스 |
| int | batchSize | 추론을 한 번 수행할 때 몇 개의 이미지를 동시에 추론할지 설정 |
| bool | useOptimize | 최적화 적용하는 플래그. 추론 최적화를 적용하면 추론 시간이 단축되지만, 추론 결과가 약간 달라질 수 있습니다. |
| Size? | size | (SEG, OCR, IEN)Image Size 를 설정합니다 |
See Also
Methods
| Improve this Doc View SourceGetInferenceOption()
검사에 필요한 옵션값을 가져옵니다
Declaration
public override SegmentationOption GetInferenceOption()
Returns
| Type | Description |
|---|---|
| SegmentationOption | 검사에 필요한 옵션값 |
Overrides
See Also
| Improve this Doc View SourceGetResult()
검사 결과를 받아오는 함수
Declaration
public override SegmentationResult GetResult()
Returns
| Type | Description |
|---|---|
| SegmentationResult | 검사 결과가 담겨있는 값 |
Overrides
See Also
| Improve this Doc View SourceGetResults()
검사 결과를 받아오는 함수
Declaration
public override SegmentationResult[] GetResults()
Returns
| Type | Description |
|---|---|
| SegmentationResult[] | 검사 결과가 담겨있는 배열값 |
Overrides
See Also
| Improve this Doc View SourceOverlayResults(Bitmap)
검사 결과에 대한 Contour를 Overlay를 그려주는 함수
Declaration
public void OverlayResults(Bitmap image)
Parameters
| Type | Name | Description |
|---|---|---|
| Bitmap | image |
See Also
| Improve this Doc View SourceSetInferenceOption(SegmentationOption, bool)
검사에 필요한 옵션값을 설정합니다
Declaration
public override void SetInferenceOption(SegmentationOption option, bool writeModelFile = false)
Parameters
| Type | Name | Description |
|---|---|---|
| SegmentationOption | option | 옵션을 설정할 값 |
| bool | writeModelFile | 모델파일에 옵션값을 덮어 씁니다. |