OCR: How to C#
Using OCR SDK for C#.NET
Sample C#.NET Codes
MICR E-13B, OCR-A, OCR-B Fonts Support
Home ›› XImage.OCR ›› C# OCR: MICR E-13B, OCR-A, OCR-B Fonts Support

C#: Scan and Recognize MICR E-13B, OCR-A, OCR-B Fonts

RasterEdge OCR SDK for .NET Supports Recognizing MICR E-13B, OCR-A, and OCR-B Fonts in C# Program

RasterEdge XImage.OCR for .NET can also be embedded into C# programming for secure document processing, like check, financial document, and bill. For instance, you may need to scan and get check characters like numbers and codes. Or you may need to extract MICR line data from check image files. All these can be achieved by using our .NET OCR SDK. And this C# guide will demonstrates how to use OCR technology to recognize common OCR fonts from check, including MICR E-13B, OCR-A, and OCR-B.

Related .net document control helps:
asp.net view excel in browser: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net mvc pdf editor control: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net dicom library: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net document viewer example: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net edit pdf text control: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
document viewer asp.net c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...

Scan MICR E-13B, OCR-A & OCR-B Fonts in C#

Add References









Using Namespaces

  using RasterEdge.Imaging.Raster.Core;

  using RasterEdge.XImage.OCR;

Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:


       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.


       If using x86, the platform target should be x86.

This is a simple C# demo for using our XImage.OCR for .NET to scan and recognize OCR fonts from check. Carefully, you must to include trained data file "RasterEdge.BankCheck.traineddata" to the source folder.

// The folder that contains '.traineddata' files.

// Define input file.
String inputFilePath = RootFolder + "\\" + @"check.jpg";

// Load image and import to OCRPage.
Bitmap bmp = new Bitmap(inputFilePath);
OCRPage page = OCRHandler.Import(bmp);

// Define the zones to scan.
page.CreateZone(new Rectangle(48, 267, 418, 40));
page.RecognizeZoneOnly = true;
page.RecSettings.Enabled = true;

// Use the trained data of check.

// Do scanning.

// Show the result.