开发者

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

开发者 https://www.devze.com 2023-03-09 09:22 出处:网络
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

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

精彩评论

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

关注公众号