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.
CarPlateRecognitionSettings(DocumentRecognitionSettings docSettings)

Methods

MethodDescription
setLanguage(Language language)
setIgnoredCharacters(String characters)Sets blacklist for recognition symbols.
setPreprocessingFilters(PreprocessingFilter preprocessingFilters)Allows to prepare the image for OCR by adjusting pre-processing methods.
setAllowedCharacters(CharactersAllowedType allowedCharacters)Allowed characters set.

CarPlateRecognitionSettings()

public CarPlateRecognitionSettings()

Default constructor: set autoSkew true.

CarPlateRecognitionSettings(DocumentRecognitionSettings docSettings)

public CarPlateRecognitionSettings(DocumentRecognitionSettings docSettings)

Parameters:

ParameterTypeDescription
docSettingsDocumentRecognitionSettings

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.

setPreprocessingFilters(PreprocessingFilter preprocessingFilters)

public void setPreprocessingFilters(PreprocessingFilter preprocessingFilters)

Allows to prepare the image for OCR by adjusting pre-processing methods.

Parameters:

ParameterTypeDescription
preprocessingFiltersPreprocessingFiltercontains user preprocessing operations or null.

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.