public class ReceiptRecognitionSettings extends Object
Constructor and Description |
---|
ReceiptRecognitionSettings()
Default constructor: set autoSkew true.
|
ReceiptRecognitionSettings(boolean autoSkew)
Constructor allows to set all options.
|
ReceiptRecognitionSettings(DocumentRecognitionSettings docSettings) |
Modifier and Type | Method and Description |
---|---|
void |
setAllowedCharacters(CharactersAllowedType allowedCharacters)
Allowed characters set.
|
void |
setAllowedCharacters(String allowedCharacters)
Allowed characters set.
|
void |
setAutoSkew(boolean autoSkew)
Sets a flag indicating whether automatic receipt skew correction should be enabled.
|
void |
setIgnoredCharacters(String characters)
Sets blacklist for recognition symbols.
|
void |
setLanguage(Language language) |
void |
setPreprocessingFilters(PreprocessingFilter preprocessingFilters)
Allows to prepare the image for OCR by adjusting pre-processing methods.
|
void |
setThreadsCount(int threadsCount)
Gets or sets the number of threads for processing.
|
void |
setUpscaleSmallFont(boolean upscaleSmallFont)
Allows you to use additional algorithms specifically for small font recognition.
|
public ReceiptRecognitionSettings()
public ReceiptRecognitionSettings(boolean autoSkew)
autoSkew
- True if the image needs alignment.public ReceiptRecognitionSettings(DocumentRecognitionSettings docSettings)
public void setAutoSkew(boolean autoSkew)
autoSkew
- Detect and rotate if true.public void setLanguage(Language language)
language
- Sets the language used for OCR.
Multi-language (none) by default.public void setIgnoredCharacters(String characters)
characters
- Characters excluded from recognition.public void setThreadsCount(int threadsCount)
threadsCount
- the number of threads that will be created for parallel recognition of image fragments.public void setPreprocessingFilters(PreprocessingFilter preprocessingFilters)
preprocessingFilters
- contains user preprocessing operations or null.public void setAllowedCharacters(CharactersAllowedType allowedCharacters)
allowedCharacters
- contains enum @see CharactersAllowedType
value.public void setAllowedCharacters(String allowedCharacters)
allowedCharacters
- contains array of characters.public void setUpscaleSmallFont(boolean upscaleSmallFont)
upscaleSmallFont
- contains boolean value - a upscaleSmallFont is set.Copyright © 2022 Aspose. All rights reserved.