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
setLanguage(Language language)
setIgnoredCharacters(String characters)Sets blacklist for recognition symbols.
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.

CarPlateRecognitionSettings()

public CarPlateRecognitionSettings()

Default constructor: set autoSkew true.

setLanguage(Language language)

public void setLanguage(Language language)

Parameters:

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

setIgnoredCharacters(String characters)

public void setIgnoredCharacters(String characters)

Sets blacklist for recognition symbols.

Parameters:

ParameterTypeDescription
charactersjava.lang.StringCharacters excluded from recognition.

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.