Class YoloModelDetectionOverlayDrawingOptionBuilder
- Namespace
- CapCognition.Maui.YoloModelDetection
- Assembly
- CapCognition.Maui.YoloModelDetection.dll
public class YoloModelDetectionOverlayDrawingOptionBuilder
- Inheritance
-
YoloModelDetectionOverlayDrawingOptionBuilder
- Inherited Members
Constructors
YoloModelDetectionOverlayDrawingOptionBuilder(YoloModelDetectionRecognitionOptionBuilder, Action<YoloModelDetectionOverlayDrawingOptions>)
public YoloModelDetectionOverlayDrawingOptionBuilder(YoloModelDetectionRecognitionOptionBuilder parent, Action<YoloModelDetectionOverlayDrawingOptions> onDone)
Parameters
parentYoloModelDetectionRecognitionOptionBuilderonDoneAction<YoloModelDetectionOverlayDrawingOptions>
Methods
DisableOverlays()
If set, the results are only available in the result list. No overlay processing is done or drawn when using directly the recognizer. Note: This switch can only be set before the recognition starts.
public YoloModelDetectionOverlayDrawingOptionBuilder DisableOverlays()
Returns
DisplayObjectSurroundingBox()
The overlay should display the recognized object boxes Note: This option only has an impact when overlay processing is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public YoloModelDetectionOverlayDrawingOptionBuilder DisplayObjectSurroundingBox()
Returns
Done()
Call this when done configuring this option Note: This method has to be the last method called in the builder chain.
public YoloModelDetectionRecognitionOptionBuilder Done()
Returns
EnableOverlays()
If set, the found results are automatically drawn as overlay or drawn when using directly the recognizer Note: This switch can only be set before the recognition starts.
public YoloModelDetectionOverlayDrawingOptionBuilder EnableOverlays()
Returns
HideObjectSurroundingBox()
The overlay should not display the recognized object boxes Note: This option only has an impact when overlay processing is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public YoloModelDetectionOverlayDrawingOptionBuilder HideObjectSurroundingBox()
Returns
SetObjectSurroundingRectColor(Color)
The color of the object overlay rect Note: This option only has an impact when overlay processing is enabled and the display of the object surrounding is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public YoloModelDetectionOverlayDrawingOptionBuilder SetObjectSurroundingRectColor(Color color)
Parameters
colorColor
Returns
SetObjectSurroundingRectStrokeWidth(float)
The stroke width of the vehicle overlay rect Note: This option only has an impact when overlay processing is enabled and the display of the object surrounding is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public YoloModelDetectionOverlayDrawingOptionBuilder SetObjectSurroundingRectStrokeWidth(float width)
Parameters
widthfloat