public class ReceiptRecognitionSettings extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CharactersAllowedType |
allowedCharacters |
protected Language |
language |
protected int |
threadsCount |
| Constructor and Description |
|---|
ReceiptRecognitionSettings()
Default constructor: set autoSkew true.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setAllowedCharacters(CharactersAllowedType allowedCharacters)
Allowed characters set.
|
void |
setAllowedCharacters(String allowedCharacters)
Allowed characters set.
|
void |
setAutomaticColorInversion(boolean automaticColorInversion)
Detect images with white text on dark/black background and automatically choose a special OCR algorithm for them.
|
void |
setIgnoredCharacters(String characters)
Sets blacklist for recognition symbols.
|
void |
setLanguage(Language language) |
void |
setLanguageDetectionLevel(LanguageDetectionLevel languageDetectionLevel)
Specifies the level of language detection for text recognition.
|
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.
|
protected Language language
protected int threadsCount
protected CharactersAllowedType allowedCharacters
public ReceiptRecognitionSettings()
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 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.public void setAutomaticColorInversion(boolean automaticColorInversion)
automaticColorInversion - contains boolean value - a automaticColorInversion is set.public void setLanguageDetectionLevel(LanguageDetectionLevel languageDetectionLevel)
languageDetectionLevel - enum value to set level (Paragraph, Word, Page).Copyright © 2025 Aspose. All rights reserved.