tags:

views:

95

answers:

2

Hello, I am looking for a good solution to parse OCR-B fonts off a PNG images fed from scanners. Any tips on a engine? In php

+1  A: 

A pure PHP solution is probably not available. I would recommend using GOCR http://jocr.sourceforge.net/ and call it from PHP with something like that

// do optical character recognition
$command = '/usr/local/bin/gocr -i ' . escapeshellarg($png_file);
$output = trim(shell_exec($command));

Then $output contains your parsed text. You might need to add and tweak GOCR parameters too, read their doc.

F. B.
I would have gone the gocr path too, but I wonder if it has the extremely high rate of success the typical `OCR-A` and `OCR-B` applications need.
ZJR
A: 

If you're ok with calling an external API for this, consider http://www.wisetrend.com/wisetrend_ocr_cloud.shtml - it has a specific option to look for OCR-B.

Eugene Osovetsky