OCR: How to C#
Using OCR SDK for C#.NET
Sample C#.NET Codes
Home ›› XImage.OCR ›› C# OCR: Overview

C#: Use OCR SDK Library to Get Image and Document Text

C#.NET Online Tutorial for How to Extract Text from Tiff, Jpeg, Png, Gif, Bmp, and Scanned PDF Files

RasterEdge provides users with the most standard and comprehensive Optical Character Recognition SDK that is fully developed, highly accurate and easy to work within C#.NET, VB.NET, ASP.NET web and .NET WinForms program development environments. This online tutorial mainly talks about high level OCR toolkit in C# class programming. With this C# imaging OCR SDK, users are supposed to extract text from various images like Jpeg, Png, Bmp, Gif, Tiff and scanned PDF document, and output to text file, SVG image or PDF file rapidly. So, if you want to deploy OCR recognition, RasterEdge XImage.OCR for .NET is your best choice. Flexible C# OCR recognition, detecting and setting options are provided for better performance.

Major Features

RasterEdge XImage.OCR for .NET provides you with mature functions to recognize characters out of images and documents types that are supported by RasterEdge .NET Document Imaging SDK.

Free to implement reliable and high performance Optical Character Recognition in any .NET development environment

Simple to integrate .NET Imaging OCR Software into C# and VB.NET programming applications

Support scanning and recognizing MICR E-13B, OCR-A, and OCR-B fonts from check at fast speed

Support using this OCR SDK to extract image and document text content that in various popular languages

Able to recognize images captured by a digital camera, scanned document or image-only PDF using C# OCR toolkit

Support both monochrome and bitonal color image recognition for scanned documents and pictures in C#

Complete and rapid report of extracted text, including size, font, location, character attribute, etc.

Sample Code

RasterEdge.com provides free sample code for using our .NET OCR SDK. You may click below to see an example of using Visual C# programming code to extract text from Jpeg, and output to text file and PDF file.  Please note, you need to firstly integrate four assemblies into your C#.NET project as references.





// Set the training data path. Please put eng.traineddata (for English) under the directory you specified.

REImage img = new REImage(@"C:\page.jpeg");

// Resize image to improve accuracy. If the image is clear enough, skip this.
img = img.Resize(new Size((int)img.Width * 2, (int)img.Height * 2));

// Recognize  characters from this image. Default language is English.
OCRPage page = OCRHandler.Import(img);


How To List

Install, Deploy and Distribute SDK

1. System requirements

2. How to install SDK into Visual Studio

3. How to deploy SDK into IIS server

4. How to distribute SDK with your Windows application

Quick to Start

You may now start to download free trial of RasterEdge XImage.OCR for .NET, integrate corresponding dll libraries into your C# application, and then use free sample code provided to have a quick evaluation.

Basic SDK Concept

1. OCRHandle Class

2. OCRRecSetting Class

3. OCRDoucument and OCRPage Classes

4. OCRZone Class

Supported Languages

RasterEdge OCR module supports recognizing various language types, like English, Spanish, French, German, Italian, Russian, etc. You may click to see all languages and corresponding abbreviations.

Extract Text from Tiff

On this Visual C# tutorial page, you will see how to use RaterEdge .NET OCR SDK in your application to extract and get text from Tiff image file. Extracted text can be output to Word or PDF document.

Extract Text from Scanned PDF

In addition to raster image files, text extraction from PDF is also supported by our OCR toolkit. For instance, you may get text content from whole PDF file, single PDF page and specified zone in page.

Extract Text from Jpeg, Png, Bitmap Images

This online C# tutorial will tell you how to use OCR technology to extract text from raster image file. You may also perform OCR on specified zone in your loaded image. Raster image files like Jpeg, Png, Bitmap, and Gif are supported.

Extract Content from Image

Free Visual C# programming codes are provided. You can directly copy demos to your .NET application to extract content from image (Tiff, scanned PDF, Jpeg, Png, Bmp, ...) and output to text or PDF file.

Recognize MICR E-13B, OCR-A, and OCR-B Fonts

XImage.OCR for .NET allows C# users to scan and recognize common OCR fonts from check, including MICR E-13B, OCR-A, and OCR-B. If you want to have a quick evaluation of this functionality, please use free C# demo code on this page.