开发者

OCR-Engine Tesseract: how to automate text recognition on a large amount of files

I have a large amount of files that I want to parse.

they look like these ones: See a example:

http://www.foundationfinder.ch/ShowDetails.php?Id=134&InterfaceLanguage=&Type=Image

http://www.foundationfinder.ch/ShowDetails.php?Id=134&InterfaceLanguage=&a开发者_Python百科mp;Type=Html

Well I guess that using Image::OCR::Tesseract could be interesting. I think I parse this with Tesseract ( http://search.cpan.org/~leocharre/Image-OCR-Tesseract-1.24/lib/Image/OCR/Tesseract.pod )

use Image::OCR::Tesseract 'get_ocr';

my $image = './hi.jpg';

my $text = get_ocr($image);

Is this the proper syntax?


You might download and compile the latest version of tesseract. Then you can write a (shell or Perl) script to feed all your files for parsing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜