Optical Character Recognition for cheques using the MICR Code standard.
Input | Output |
---|---|
{ confidence: '86.748', numbers: { transit: '00502', institution: '010', account: '705555' } } |
- Required: node v6.8.0 or greater
- Recommended: n and avn
- To install, run
npm install cheque-ocr
[TODO]
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
.
- [TODO] Normalize orientation of cheque image.
- Determine region of interest (ROI) where the MICR Code exists.
- Within ROI, use Tesseract to convert MICR Code to text.
MICR training data for Tesseract from BigPino67/Tesseract-MICR-OCR