Aspose.OCR  for .NET

Perform Image OCR with .NET Library

Add image based Optical Character Recognition feature within any .NET-based application.

  Download Free Trial
  
 

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.

Advanced .NET OCR API Features

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

Capture Text from Images

In just 2 lines of code, add OCR functionality to your .NET applications to capture text from images. It is really that simple!

Single line OCR Recognition - C#

// Initialize an instance of AsposeOcr
AsposeOcr api = new AsposeOcr();

// Recognize image
string result = api.RecognizeImage(dataDir + "Sampleocr.bmp");

// Display the recognized text
Console.WriteLine(result);

Perform OCR on Images

Aspose.OCR for .NET allows the developers to extract text and related information such as 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.

Perform OCR on image - C#

// The path to the documents directory.
     
  string path = "dirPath/";

// Initialize an instance of AsposeOcr
var api = new AsposeOcr();

// Recognize image
string result = api.RecognizeLine(path + "sample_line.png");

// Print single line recognized text
Console.WriteLine(result);

Muti-Fonts & Styles Support

.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.

Multi-Language Support

Aspose.OCR for .NET supports different 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.

OCR Language Auto-Detection Support - C#

// 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);
  

Support and Learning Resources

  
  

Aspose.OCR offers individual OCR APIs for other popular development environments as listed below: