LeadTools Tutorial: Check reading and processing

Source: Internet
Author: User

LeadTools's Document Image Toolkit series contains a robust check scanning and processing SDK, which is used in a wide range of applications, including banking, insurance, and retail industries.

Introduction

Although credit cards and digital wallets try to replace it, cheques remain a very common and practical way of payment and financial transactions. Consumers and businesses still rely on traditional paper-based financial transactions, but this does not mean that technology cannot simplify storage and improve customer satisfaction. Many ATMs can now accept cheques and automatically read their values, while some have launched applications that deposit directly on smartphones or tablets without having to go to a bank or use an ATM. How do financial institutions achieve these functions? What good would that do to other businesses not in the financial sector?

LeadTools's Document Image Toolkit series contains a robust check scanning and processing SDK, which is used in a wide range of applications, including banking, insurance, and retail industries. It combines advanced magnetic ink character recognition (MICR) and optical character recognition (OCR) to quickly and accurately extract every relevant field and data in an image captured by a scanner or mobile electronic camera. Advanced image processing algorithms such as torsion skew and perspective correction improve the recognition accuracy of low-quality images. In addition, LeadTools includes a variety of cross-platform programming interfaces that allow developers to create native apps on iOS, Android, and Windows Phone devices.

In addition to the financial sector, the Check Scanning SDK enables a unique solution, such as a tablet-based kiosk that accepts cheques as a payment method. In addition, any business that accepts cheques can use LeadTools's check scanning and image processing capabilities to protect customers and reduce sensitive information on images.

using leadtools Check reader

The main force behind leadtools cheque scanning and processing technology is the Bankcheckreader class. This high-level object encapsulates the entire process and can read data from checks in just a few lines of code. When setting up Bankcheckreader, just give it an instance of the OCR engine, and everything will be OK.

Create a cheque reader bankcheckreader checkreader = new Bankcheckreader ();//Create and assign an OCR engine iocrengine ocrengine by cheque Reader Ocrenginemanager.createengine (Ocrenginetype.advantage, false); Ocrengine.startup (null, NULL, NULL, NULL); Checkreader.ocrengine = Ocrengine;

Once Bankcheckreader is initialized, its Processimage method uses the OCR engine to find each field. Because a check is a semi-structured form, some words such as "pay", "date", "Quantity", and so on, appear in the same location in most documents. When it recognizes these headings, LeadTools examines the images near each heading, extracting exactly the information in the field.

When processed, the values and bounding rectangles of each field are added to the dictionary of the Bankcheckfield object. Once done, you can enumerate the Bankcheckreader.results members to display your business logic. As shown, the results are shown in DataGridView, along with a click handler that uses the bounding rectangle to draw a highlight annotation to extract the cropped and enlarged images in the field values.

Load and process images rasterimage rasterimage = rastercodecs.load (fileName); Checkreader.processimage (rasterimage);// by Bankcheckfields Loop, the result is shown as foreach (var item in checkreader.results) {   DataGridViewRow row = new DataGridViewRow ();   Row. Createcells (DataGridView1, item. Key, item. Value.text);   Row. Tag = Item. Value;   DATAGRIDVIEW1.ROWS.ADD (row);}
professional image processing for mobile devices: twist-Skew angle

In the demand for automated cheque scanning, the phone is a major driver. However, it is difficult to get high-quality images due to low dpi images, poor lighting, and angles. We can add a crosshair and a rectangle to help the user get a better image, but leadtools a step further and considers more similar issues.

With Perspectivedeskewcommand, developers can develop more user-friendly and accurate applications, providing greater flexibility for the user base. When taking a photo with your tablet or phone, most photos are taken at an angle, as shown in:

The upper left corner is the ideal situation, the picture is very good. However, the images taken in general are skewed. The image below is worse, the image is shot at an angle close to 20 degrees and has no corners. With two lines of code, LEADTOOLS can automatically correct all the problems and remove the background.

Perspectivedeskewcommand cmd = new Perspectivedeskewcommand (); cmd. Run (Rasterimageviewer1.image);
other uses and precautions

In addition to the bank's check, Bankcheckreader can also process personal cheques. The field and location of a personal check are generally the same, but handwritten text and personalized design improve the difficulty of identification. In this case, it is important to have a comprehensive Document image toolkit. LeadTools has a broad collection of document cleanup and image extension algorithms that can be removed from the background and provide an area of text with higher contrast for OCR.

In addition, the authorized signature fields are tricky. This value is not required in most cases, but it is also necessary to validate the signature. We provide a bounding rectangle in the Bankcheckfield and use Blankpagedetectorcommand on the clipped image to determine if it is signed.

In both cases, most of the processing can be automated or simplified, plus some manual validation. We are not entering all data manually, only the results of missing fields or confidence below need to be verified and corrected. For example, when a mobile deposit is implemented, each machine type segment and MICR string are automatically retrieved, but the user may need to enter or verify the amount. Of course you can create more efficient proof operator applications, and you can use bounding rectangles, image processing, and viewer controls to automatically zoom in on the fields you need, such as amounts and signatures.

Summary

Cheques may slowly disappear in today's market, but a document image development package similar to the LeadTools Check scanning SDK can delight customers and make them feel as fast and convenient as moving digital. LeadTools's fast-prepared MICR and OCR engine, image processing, and cross-platform development libraries offer a wide range of opportunities for banking, insurance, and more modern point of sale.

View Product Details evget.com/supplier/188

LeadTools Tutorial: Check reading and processing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.