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 webforms document viewer: ASP.NET WebForms application document viewer control: view, annotate, redact, convert files online in ASP.NET
asp.net pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net excel document viewer: ASP.NET Excel Document Viewer in C# Control: view office excel files online in ASP.NET web applications
asp.net iis document viewer: C# HTML5 Viewer: Deployment on IIS
asp.net image viewer: ASP.NET Image Document Viewer Control: view, annotate, redact, convert image files in html web browser
asp.net word document viewer: ASP.NET Office Word Document Viewer: view MS Office Word files online using C# in ASP.NET web applications

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.