Invoice recognition settings

Aspose.OCR for .NET allows for very flexible customization of invoice recognition accuracy, performance, and other settings by configuring the properties of the InvoiceRecognitionSettings object.

These settings are specifically tailored for processing scanned or photographed invoices.

Setting Type Default value Description
AllowedSymbols string All characters of the selected language The whitelist of characters Aspose.OCR engine will look for.
IgnoredSymbols string none A blacklist of characters that are ignored during recognition.
Language Aspose.OCR.Language Aspose.OCR.Language.None Specify a language for recognition.
ThreadsCount integer auto The number of CPU threads used for recognition.

Applicable to


The following code example shows how to fine-tune invoice recognition:

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add images to OcrInput object
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
// Recognition settings
Aspose.OCR.InvoiceRecognitionSettings recognitionSettings = new Aspose.OCR.InvoiceRecognitionSettings();
recognitionSettings.Language = Aspose.OCR.Language.Latin;
// Recognize invoices
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.RecognizeInvoice(input, recognitionSettings);
foreach(Aspose.OCR.RecognitionResult result in results)