Aspose.OCR for Python via Java API docs
Loading...
Searching...
No Matches
IDCardRecognitionSettings Class Reference

Public Member Functions

 __init__ (self)
 
 set_allowed_characters (self, str allowedCharacters)
 Allowed characters set.
 
 set_automatic_color_inversion (self, bool automaticColorInversion)
 Detect images with white text on dark/black background and automatically choose a special OCR algorithm for them.
 
 set_ignored_characters (self, str ignoredCharacters)
 Sets blacklist for recognition symbols.
 
 set_language (self, Language language)
 Sets the language used for OCR.
 
 set_threads_count (self, int threadsCount)
 Gets or sets the number of threads for processing.
 
 set_upscale_small_font (self, bool upscaleSmallFont)
 Allows you to use additional algorithms specifically for small font recognition.
 

Static Public Attributes

str JAVA_CLASS_NAME = "com.aspose.ocr.IDCardRecognitionSettings"
 

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self)

Member Function Documentation

◆ set_allowed_characters()

set_allowed_characters (   self,
str  allowedCharacters 
)

Allowed characters set.

Determines the array of characters allowed for recognition result.

Parameters
allowedCharacterscontains string of characters.

◆ set_automatic_color_inversion()

set_automatic_color_inversion (   self,
bool  automaticColorInversion 
)

Detect images with white text on dark/black background and automatically choose a special OCR algorithm for them.

Parameters
automaticColorInversioncontains boolean value - a automaticColorInversion is set. True by default.

◆ set_ignored_characters()

set_ignored_characters (   self,
str  ignoredCharacters 
)

Sets blacklist for recognition symbols.

Parameters
ignoredCharactersCharacters excluded from recognition.

◆ set_language()

set_language (   self,
Language  language 
)

Sets the language used for OCR.

Multi-language (none) by default.

Parameters
languagecontains enum Language value.

◆ set_threads_count()

set_threads_count (   self,
int  threadsCount 
)

Gets or sets the number of threads for processing.

By default, 0 means that the image will be processed with the number of threads equal to your number of processors. ThreadsCount = 1 means that the image will be processed in the main thread.

Parameters
threadsCountthe number of threads that will be created for parallel recognition of image fragments.

◆ set_upscale_small_font()

set_upscale_small_font (   self,
bool  upscaleSmallFont 
)

Allows you to use additional algorithms specifically for small font recognition.

Useful for images with small size characters.

Parameters
upscaleSmallFontcontains boolean value - an upscaleSmallFont is set.

Member Data Documentation

◆ JAVA_CLASS_NAME

str JAVA_CLASS_NAME = "com.aspose.ocr.IDCardRecognitionSettings"
static