Class ReceiptRecognitionSettings

Class ReceiptRecognitionSettings

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

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

public class ReceiptRecognitionSettings

Inheritance

objectReceiptRecognitionSettings

Derived

IDCardRecognitionSettings, InvoiceRecognitionSettings, PassportRecognitionSettings

Inherited Members

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

Constructors

ReceiptRecognitionSettings(Language)

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

public ReceiptRecognitionSettings(Language language)

Parameters

language Language

Language used for OCR.

ReceiptRecognitionSettings()

Initializes a new instance of the Aspose.OCR.ReceiptRecognitionSettings class with default set of properties.

public ReceiptRecognitionSettings()

Properties

AllowedCharacters

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

public CharactersAllowedType AllowedCharacters { get; set; }

Property Value

CharactersAllowedType

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