Ikram ul Haq October 13, 2016one Comment

Supply multiple whitelists for single OCR operation with Aspose.OCR for .Net 16.10

Supply multiple whitelists for single OCR operation with Aspose.OCR for .Net 16.10

October 13, 2016
Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.OCR for .NET logo We are pleased to announce the release of Aspose.OCR for .Net 16.10. The major development in this release is support for supplying multiple white lists for single OCR operation. Improved process of barcode recognition from OMR sheet has also been incorporated in this release.

Supply Multiple White Lists

Aspose.OCR for .Net provides the functionality to perform the OCR operation with more than one white list for a single OCR operation. Aspose.OCR for .Net API has introduced a new property Whitelist in RecognitionBlock class. With the help of this property developer can set white list for each RecognitionBlock introduced in a single OCR process. Below provided code snippet demonstrates how to process multiple RecognitionBlock with their own white list in a single OCR operation.



// Create an initialize an instance of OcrEngine
OcrEngine engine = new OcrEngine();

// Set the OcrEngine.Image property by loading an image from disk, memory or URL
engine.Image = ImageStream.FromFile("sample.jpg");


// create text recognition block by supplying X,Y coordinates and Width,Height values
IRecognitionBlock block = RecognitionBlock.CreateTextBlock(6, 9, 120, 129);

// set the Whitelist property by specifying a new block whitelist
block.Whitelist = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };

// YOU CAN ADD MORE TEXT BLOCK AND SET WHITE LISTS.

// set different configurations and add recognition block(s)
ocr.Config.ClearRecognitionBlocks();
ocr.Config.AddRecognitionBlock(block);
ocr.Config.DetectTextRegions = false;

// Call OcrEngine.Process method to perform OCR operation
if (engine.Process())
{
    // Display the recognized text from each Page
    Console.WriteLine(engine.Text);
}

Enhancements

Following enhancements have been introduced in this release.

  • Process of loading barcode into the OMR template editor has been improved.
  • Working of barcode recognition into the OMR template editor has been improved.
Please check the release notes of Aspose.OCR for .Net 16.10 for a complete list of enhancements.

Aspose.OCR for .Net Resources

The resources, you may need to accomplish your tasks:

As always, we appreciate your feedback so if you ever have anything to tell us about this release or anything else, please head to the Aspose.OCR forum for a chat.

 

Join the Conversation

1 Comment

Leave a comment

Posted inAspose.OCR Product Family
 

Related Articles