Class DrawingHelper
bitmap에 drawing 관련 클래스입니다.
Inherited Members
Namespace: SaigeVision.Net.V2
Assembly: SaigeVision.Net.V2.dll
Syntax
public static class DrawingHelper
Methods
View SourceGetRotatedImage(SrImage, DetectedObject)
Rotate image에 대해서 결과 이미지를 출력합니다.
Declaration
public static SrImage GetRotatedImage(SrImage srImage, DetectedObject detectedObject)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | srImage | input image |
| DetectedObject | detectedObject | ROD 결과 |
Returns
| Type | Description |
|---|---|
| SrImage |
OverlayActivationmapResults(SrImage, Bitmap, float)
bitmap에 activationmap을 그려주는 기능입니다.
Declaration
public static SrImage OverlayActivationmapResults(SrImage srImage, Bitmap activationMap, float opacity = 0.4)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | srImage | |
| Bitmap | activationMap | |
| float | opacity |
Returns
| Type | Description |
|---|---|
| SrImage |
OverlayBoxResults(SrImage, DetectedObject[], int)
bitmap에 box를 그려주는 기능입니다.
Declaration
public static SrImage OverlayBoxResults(SrImage srImage, DetectedObject[] detectedObjects, int boxWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | srImage | |
| DetectedObject[] | detectedObjects | |
| int | boxWidth |
Returns
| Type | Description |
|---|---|
| SrImage |
OverlayContourResults(SrImage, SegmentedObject[])
bitmap에 contour를 그려주는 기능입니다.
Declaration
public static SrImage OverlayContourResults(SrImage srImage, SegmentedObject[] segmentedObjects)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | srImage | drawing할 bitmap |
| SegmentedObject[] | segmentedObjects | segmentedObject |
Returns
| Type | Description |
|---|---|
| SrImage |
OverlayHeatmapResults(SrImage, Bitmap, float)
bitmap에 heatmap을 그려주는 기능입니다.
Declaration
public static SrImage OverlayHeatmapResults(SrImage srImage, Bitmap heatmap, float opacity = 0.4)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | srImage | |
| Bitmap | heatmap | |
| float | opacity |
Returns
| Type | Description |
|---|---|
| SrImage |
OverlayOCRResults(SrImage, TextObject[], Color, Color, int, Color, int)
OCR 에 대한 결과를 그려줍니다.
Declaration
public static SrImage OverlayOCRResults(SrImage srImage, TextObject[] textObjects, Color textColor, Color bgColor, int fontSize, Color outlierColor, int outlierWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| SrImage | srImage | drawing하기 위한 image |
| TextObject[] | textObjects | OCR result |
| Color | textColor | 원하는 글자 색상 |
| Color | bgColor | 배경색 설정 |
| int | fontSize | 글자 크기 |
| Color | outlierColor | outlier 색상 |
| int | outlierWidth | outlier 두께 |
Returns
| Type | Description |
|---|---|
| SrImage |