Class BaseRecognitionSettings

Class BaseRecognitionSettings

Namespace: Aspose.OCR
Assembly: Aspose.OCR.dll (25.8.0)

Settings for the image recognition. Contains elements that allow customizing the recognition process.

public abstract class BaseRecognitionSettings

Inheritance

object BaseRecognitionSettings

Derived

CarPlateRecognitionSettings , IDCardRecognitionSettings , InvoiceRecognitionSettings , PassportRecognitionSettings , ReceiptRecognitionSettings , RecognitionSettings

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

BaseRecognitionSettings(Language)

Initializes a new instance of the Aspose.OCR.RecognitionSettings class with full set of properties.

public BaseRecognitionSettings(Language language = Language.Latin)

Parameters

language Language

Language used for OCR.

Properties

AllowedCharacters

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

public CharactersAllowedType AllowedCharacters { get; set; }

Property Value

CharactersAllowedType

AllowedSymbols

Set the allowed characters with alphabet property.

public string AllowedSymbols { get; set; }

Property Value

string

AutomaticColorInversion

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

public bool AutomaticColorInversion { get; set; }

Property Value

bool

IgnoredSymbols

Sets blacklist for recognition symbols.

public string IgnoredSymbols { get; set; }

Property Value

string

Language

Gets or sets the language used for OCR. Determines the alphabet used during recognition. Multi-language by default.

public Language Language { get; set; }

Property Value

Language

ThreadsCount

Gets or sets the number fo 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.

public int ThreadsCount { get; set; }

Property Value

int

 English