Aspose.OCR for .NET is a robust optical character recognition API. Developers can easily add OCR functionalities in their applications. API is extensible, easy to use, compact and provides a simple set of classes for controlling character recognition. It supports commonly used image formats and provides functionalities like reading multiple characters and fonts from images, bold and italic styles, noise removal filters, scanning of the whole image or any part of the image and much more. Moreover, API has the ability to perform OCR using the GPU instead of the core processor.
An overview of the capabilities of API.
Aspose.OCR for .NET supports the .NET framework.
Aspose.OCR for .NET supports most commonly used image file formats.
Read text or characters from images
Support for commonly used image file formats
Support for global languages
Read text or characters in popular fonts
Support for font styles
Scan the whole image or any part of it
Scan rotated images
Apply noise removal filters
Specify multiple white lists
Aspose.OCR for .NET allows the developers to extract text and related information such as font, style & location of the text from specific parts of an image. This feature allows performing the OCR operation quickly on document scans that follow a similar structure. OCR library performs the operation on the image having multiple lines or a single line. Here is code the code for single recognition.
// The path to the documents directory. string path = "dirPath/"; // Initialize an instance of AsposeOcr AsposeOcr libVar = new AsposeOcr(); // Recognize image string slResult = libVar.RecognizeLine(path + "sample_line.png"); // Print single line recognized text Console.WriteLine(slResult);
.NET OCR API supports to recognize Text in popular fonts & styles like Arial, Times New Roman, Courier New, Verdana, Tahoma and Calibri fonts in regular, bold and italic text styles.
Aspose.OCR for .NET supports multiple languages such as English, French, Spanish and Portuguese. More languages are to be supported with future releases of API. Performing OCR operation is same for all languages like following few lines perform OCR operation on an image having Spanish text
// documents directory path string dirPath = "directorypath/"; // Initialize an instance AsposeOcr ocrLanguage = new AsposeOcr(); // Recognize image string spanishText = ocrLanguage.RecognizeImage(dirPath + "SpanishOCR.bmp"); // Print the recognized text Console.WriteLine(spanishText);