Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

Aspose.OCR for NET 24.6.3 (NuGet package)

Download  Support Forum 

File Details

  • Downloads:
  • 1
  • File Size:
  • 135.08MB
  • Date Added:
  • 2/7/2024

Description

It contains Aspose.OCR for .NET 24.6.3 (NuGet package) release.

File Details

US Passport OCR

The latest NuGet package version of Aspose.OCR for .NET 24.6.3 introduces a feature that allows API developers to extract crucial information such as names, numbers, and dates of birth from US passport images.

Here is a code example illustrating how to extract details from the US passport image:


Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add scanned passport to recognition batch
OcrInput passports = new OcrInput(InputType.SingleImage);
passports.Add("us_passport_sample.png");
// Explicitly specify that you are processing US passport
var recognitionSettings = new PassportRecognitionSettings();
recognitionSettings.Country = Aspose.OCR.Country.USA;
// Recognize passport
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.RecognizePassport(passports, recognitionSettings);
// Parse passport data and output essential details along with image regions they were found in
var details = results[0].GetKeywords();
foreach (var item in details)
{
	Console.WriteLine($"{item.Key}: {item.Value.TextInLine}");
	Console.WriteLine($"Left: {item.Value.Line.X}; top: {item.Value.Line.Y}; size: {item.Value.Line.Width} x {item.Value.Line.Height}");
}

Source*

Custom Fonts in PDF

We have added support for embedding custom TrueType or OpenType fonts into PDF documents generated from OCR results with this .NET OCR API release.

Font embedding code example:


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);
input.Add("page1.png");
input.Add("page2.png");
// Recognize images
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.Recognize(input);
// Save results as text-only PDF in Adobe Ming font
Aspose.OCR.AsposeOcr.SaveMultipageDocument("result.pdf", Aspose.OCR.SaveFormat.PdfNoImg, results, "fonts/AdobeMingStd-Light.otf");

Source*

Deprecation Update

Aspose.OCR.Country.UNIVERSAL has been replaced by Aspose.OCR.Country.NONE. The legacy codes will continue to run and will be supported until January 2025.

Public API Changes

  • Updated API: Added Aspose.OCR.Country.NONE for skipping the parsing of passport details.
  • Updated Method: RecognitionResult.Save() and AsposeOcr.SaveMultipageDocument() now support an embeddedFontPath parameter for font embedding.

You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.OCR for .NET 24.6.3 Release Notes.

 English