OCR, OCR-B Fonts in PHP?

I am looking for a good solution to parse OCR-B fonts from PNG images downloaded from scanners. Any advice on the engine? In php

+2


a source to share


2 answers


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

// 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 may need to add and configure GOCR parameters, read their document.

+1


a source


If you're ok with calling an external API to do this, consider http://www.ocr-it.com/ - it has a specific OCR search option -B.



0


a source







All Articles