Skip to content

Latest commit

 

History

History
58 lines (46 loc) · 1.46 KB

README.md

File metadata and controls

58 lines (46 loc) · 1.46 KB

cheque-ocr Build Status

Optical Character Recognition for cheques using the MICR Code standard.

Input Output
{
  confidence: '86.748',
  numbers: {
    transit: '00502',
    institution: '010',
    account: '705555'
  }
}

Installation

  • Required: node v6.8.0 or greater
  • Recommended: n and avn
  • To install, run npm install cheque-ocr [TODO]

Usage

var chequeOCR = require('cheque-ocr'),
    fs = require('fs');

var image = fs.readFileSync('/path/to/image.jpg');
chequeOCR(image, function(err, result) {
  console.log(err, result);
});

For a demo, run node examples/basic.js.

How it works

  1. [TODO] Normalize orientation of cheque image.
  2. Determine region of interest (ROI) where the MICR Code exists.
  3. Within ROI, use Tesseract to convert MICR Code to text.

Acknowledgements

MICR training data for Tesseract from BigPino67/Tesseract-MICR-OCR