The MICR line at the bottom of a cheque holds the routing number and the account number in a special magnetic-ink font, and OCR can misread those characters, especially the transit symbols. A wrong routing number sends money to the wrong bank. This guide checks the MICR line on one cheque.
Prerequisites
A scanned cheque PDF and an OCR tool. Cheques carry sensitive account data, so work on a private copy and delete it when done.
Steps
1. Run OCR on the cheque
Run OCR on the cheque and save the text. Expected result: the MICR line becomes selectable text.
2. Read the routing number
Read the nine-digit routing number from the OCR text. Expected result: the routing number reads 021000021.
3. Read the account number
Read the account number from the OCR text. Expected result: the account number reads 0048123907.
4. Compare both numbers with the cheque
Compare the routing and account numbers with the printed cheque. Expected result: both numbers match the printed cheque digit for digit.
Practice check: fictional scanned cheque, MICR line check
The table below is fictional practice material. It lists the two MICR numbers to check.
| Field | Value |
|---|---|
| Routing number | 021000021 |
| Account number | 0048123907 |
| Cheque number | 1042 |
Expected result. both MICR numbers match the printed cheque: routing 021000021 and account 0048123907.
Limits
- MICR characters use a special font that general OCR handles poorly, so a mismatch means reading the line by eye, not trusting a second OCR pass.
- UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.
Sources
- Adobe Acrobat, Extract key data from scanned PDFs with OCR – Try to select a word first; OCR adds text you can search, select, copy and extract; tables can flatten, so compare totals with the original page. Checked 2026-11-29.
- Tesseract OCR Documentation, output formats – Tesseract supports plain text, searchable PDF, hOCR, TSV, ALTO and PAGE output; –psm sets the page segmentation mode. Checked 2026-11-29.
