CarPlateRecognitionSettings
Contents
[
Hide
]Inheritance: java.lang.Object
public class CarPlateRecognitionSettings
Settings for the car number recognition Contains elements that allow customizing the recognition process
Constructors
| Constructor | Description |
|---|---|
| CarPlateRecognitionSettings() | Default constructor: set autoSkew true. |
Methods
| Method | Description |
|---|---|
| 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) | |
| setRetainImageForExport(boolean retainImageForExport) | Sets whether the preprocessed source image is retained in the recognition result. |
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:
| Parameter | Type | Description |
|---|---|---|
| allowedCharacters | CharactersAllowedType | contains 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:
| Parameter | Type | Description |
|---|---|---|
| automaticColorInversion | boolean | contains boolean value - a automaticColorInversion is set. |
setIgnoredCharacters(String characters)
public void setIgnoredCharacters(String characters)
Sets blacklist for recognition symbols.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| characters | java.lang.String | Characters excluded from recognition. |
setLanguage(Language language)
public void setLanguage(Language language)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| language | Language | Sets the language used for OCR. Multi-language (none) by default. |
setRetainImageForExport(boolean retainImageForExport)
public void setRetainImageForExport(boolean retainImageForExport)
Sets whether the preprocessed source image is retained in the recognition result. Disabled ( false ) by default.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| retainImageForExport | boolean | true to retain the image for legacy export APIs. |