CarPlateRecognitionSettings

Inheritance: java.lang.Object

public class CarPlateRecognitionSettings

Settings for the car number recognition Contains elements that allow customizing the recognition process

Constructors

ConstructorDescription
CarPlateRecognitionSettings()Default constructor: set autoSkew true.

Methods

MethodDescription
setAllowedCharacters(CharactersAllowedType allowedCharacters)Allowed characters set.
setAutomaticColorInversion(boolean automaticColorInversion)Detect images with white text on dark/black background and automatically choose a special OCR algorithm for them.
setIgnoredCharacters(String characters)Sets blacklist for recognition symbols.
setLanguage(Language language)

CarPlateRecognitionSettings()

public CarPlateRecognitionSettings()

Default constructor: set autoSkew true.

setAllowedCharacters(CharactersAllowedType allowedCharacters)

public void setAllowedCharacters(CharactersAllowedType allowedCharacters)

Allowed characters set. Determines the type of characters allowed for recognition result.

Parameters:

ParameterTypeDescription
allowedCharactersCharactersAllowedTypecontains enum @see CharactersAllowedType value.

setAutomaticColorInversion(boolean automaticColorInversion)

public void setAutomaticColorInversion(boolean automaticColorInversion)

Detect images with white text on dark/black background and automatically choose a special OCR algorithm for them.

Parameters:

ParameterTypeDescription
automaticColorInversionbooleancontains boolean value - a automaticColorInversion is set.

setIgnoredCharacters(String characters)

public void setIgnoredCharacters(String characters)

Sets blacklist for recognition symbols.

Parameters:

ParameterTypeDescription
charactersjava.lang.StringCharacters excluded from recognition.

setLanguage(Language language)

public void setLanguage(Language language)

Parameters:

ParameterTypeDescription
languageLanguageSets the language used for OCR. Multi-language (none) by default.