IDCardRecognitionSettings

IDCardRecognitionSettings class

Module: recognitionsettings

Constructors

NameDescription
init

Methods

NameReturn TypeStaticDescription
set_allowed_charactersNoAllowed characters set. Determines the array of characters allowed for recognition result.
set_automatic_color_inversionNoDetect images with white text on dark/black background and automatically choose a special OCR algorithm for them.
set_ignored_charactersNoSets blacklist for recognition symbols.
set_languageNoSets the language used for OCR. Multi-language (none) by default.
set_threads_countNoGets 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.
set_upscale_small_fontNoAllows you to use additional algorithms specifically for small font recognition. Useful for images with small size characters.

Fields

NameValueDescription
JAVA_CLASS_NAME"com.aspose.ocr.IDCardRecognitionSettings"

IDCardRecognitionSettings Constructor

__init__(self)

IDCardRecognitionSettings.set_allowed_characters

set_allowed_characters(self, str allowedCharacters)

Allowed characters set. Determines the array of characters allowed for recognition result.

ParameterTypeDescription
allowedCharactersstrcontains string of characters.

IDCardRecognitionSettings.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.

ParameterTypeDescription
automaticColorInversionboolcontains boolean value - a automaticColorInversion is set. True by default.

IDCardRecognitionSettings.set_ignored_characters

set_ignored_characters(self, str ignoredCharacters)

Sets blacklist for recognition symbols.

ParameterTypeDescription
ignoredCharactersstrCharacters excluded from recognition.

IDCardRecognitionSettings.set_language

set_language(self, Language language)

Sets the language used for OCR. Multi-language (none) by default.

ParameterTypeDescription
languageLanguagecontains enum Language value.

IDCardRecognitionSettings.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.

ParameterTypeDescription
threadsCountintthe number of threads that will be created for parallel recognition of image fragments.

IDCardRecognitionSettings.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.

ParameterTypeDescription
upscaleSmallFontboolcontains boolean value - an upscaleSmallFont is set.

IDCardRecognitionSettings.JAVA_CLASS_NAME

Type: str

Value: "com.aspose.ocr.IDCardRecognitionSettings"