Browse our Products Toggle navigation
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.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
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*
We have added support for embedding custom TrueType or OpenType fonts into PDF documents generated from OCR results with this .NET OCR API release.
TrueType
OpenType
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");
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.
Aspose.OCR.Country.UNIVERSAL
Aspose.OCR.Country.NONE
RecognitionResult.Save()
AsposeOcr.SaveMultipageDocument()
embeddedFontPath
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.