开发者

problem with this module Image::OCR::Tesseract

开发者 https://www.devze.com 2023-03-25 07:49 出处:网络
I have activestate perl v5.8.8 installed i install the following module Image::OCR::Tesseract with the ppm

I have activestate perl v5.8.8 installed i install the following module Image::OCR::Tesseract with the ppm

when I try to run the following code:

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

 my $image = 'my_image.jp';

 my $text = get_ocr($image);

I get the below error messgae :

Invalid Parameter - -compress

1024 at C:/Perl/site/lib/Image/OCR/Tesseract.pm line 77.

开发者_如何学C

Could someone help what could be this error message /or if someone have this problem beofre ?


Judging by the source of Image::OCR::Tesseract, this error is caused by convert not understanding the -compress parameter. Perhaps, you can try updating ImageMagick to a newer version.

0

精彩评论

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