Class LicensePlateRecognitionOverlayDrawingOptionBuilder
- Namespace
- CapCognition.Maui.LPR
- Assembly
- CapCognition.Maui.LPR.dll
public class LicensePlateRecognitionOverlayDrawingOptionBuilder
- Inheritance
-
LicensePlateRecognitionOverlayDrawingOptionBuilder
- Inherited Members
Constructors
LicensePlateRecognitionOverlayDrawingOptionBuilder(LicensePlateDetectionRecognitionOptionBuilder, Action<LicensePlateRecognitionOverlayDrawingOptions>)
public LicensePlateRecognitionOverlayDrawingOptionBuilder(LicensePlateDetectionRecognitionOptionBuilder parent, Action<LicensePlateRecognitionOverlayDrawingOptions> onDone)
Parameters
parentLicensePlateDetectionRecognitionOptionBuilderonDoneAction<LicensePlateRecognitionOverlayDrawingOptions>
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 LicensePlateRecognitionOverlayDrawingOptionBuilder DisableOverlays()
Returns
DisplayLicensePlateSurroundingBox()
The overlay should display the recognized license plate 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 LicensePlateRecognitionOverlayDrawingOptionBuilder DisplayLicensePlateSurroundingBox()
Returns
DisplayVehicleSurroundingBox()
The overlay should display the recognized vehicle 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 LicensePlateRecognitionOverlayDrawingOptionBuilder DisplayVehicleSurroundingBox()
Returns
Done()
Call this when done configuring this option Note: This method has to be the last method called in the builder chain.
public LicensePlateDetectionRecognitionOptionBuilder 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 LicensePlateRecognitionOverlayDrawingOptionBuilder EnableOverlays()
Returns
HideLicensePlateSurroundingBox()
The overlay should not display the recognized license plate 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 LicensePlateRecognitionOverlayDrawingOptionBuilder HideLicensePlateSurroundingBox()
Returns
HideVehicleSurroundingBox()
The overlay should not display the recognized vehicle 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 LicensePlateRecognitionOverlayDrawingOptionBuilder HideVehicleSurroundingBox()
Returns
SetLicensePlateNonValidatedSurroundingRectColor(Color?)
The color of a non-validated license plate overlay rect If not set, the validated color is taken Note: This option only has an impact when overlay processing is enabled and the display of the license plate surrounding is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public LicensePlateRecognitionOverlayDrawingOptionBuilder SetLicensePlateNonValidatedSurroundingRectColor(Color? color)
Parameters
colorColor
Returns
SetLicensePlateNonValidatedSurroundingRectStrokeWidth(float?)
The stroke width of a non-validated license plate overlay rect. If not set, the validated width is taken Note: This option only has an impact when overlay processing is enabled and the display of the license plate surrounding is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public LicensePlateRecognitionOverlayDrawingOptionBuilder SetLicensePlateNonValidatedSurroundingRectStrokeWidth(float? width)
Parameters
widthfloat?
Returns
SetLicensePlateSurroundingRectColor(Color)
The color of the license plate overlay rect Note: This option only has an impact when overlay processing is enabled and the display of the license plate surrounding is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public LicensePlateRecognitionOverlayDrawingOptionBuilder SetLicensePlateSurroundingRectColor(Color color)
Parameters
colorColor
Returns
SetLicensePlateSurroundingRectStrokeWidth(float)
The stroke width of the license plate overlay rect Note: This option only has an impact when overlay processing is enabled and the display of the license plate surrounding is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public LicensePlateRecognitionOverlayDrawingOptionBuilder SetLicensePlateSurroundingRectStrokeWidth(float width)
Parameters
widthfloat
Returns
SetOverlays(bool)
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 LicensePlateRecognitionOverlayDrawingOptionBuilder SetOverlays(bool enable)
Parameters
enablebool
Returns
SetVehicleSurroundingRectColor(Color)
The color of the vehicle overlay rect Note: This option only has an impact when overlay processing is enabled and the display of the vehicle surrounding is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public LicensePlateRecognitionOverlayDrawingOptionBuilder SetVehicleSurroundingRectColor(Color color)
Parameters
colorColor
Returns
SetVehicleSurroundingRectStrokeWidth(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 vehicle surrounding is enabled. If the option should be changed during runtime, the property of the options needs to be modified directly.
public LicensePlateRecognitionOverlayDrawingOptionBuilder SetVehicleSurroundingRectStrokeWidth(float width)
Parameters
widthfloat