Table of Contents

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

parent YoloModelDetectionRecognitionOptionBuilder
onDone Action<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

YoloModelDetectionOverlayDrawingOptionBuilder

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

YoloModelDetectionOverlayDrawingOptionBuilder

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

YoloModelDetectionRecognitionOptionBuilder

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

YoloModelDetectionOverlayDrawingOptionBuilder

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

YoloModelDetectionOverlayDrawingOptionBuilder

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

color Color

Returns

YoloModelDetectionOverlayDrawingOptionBuilder

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

width float

Returns

YoloModelDetectionOverlayDrawingOptionBuilder