Closed rajeevkannav closed 5 years ago
This happens also to me with latest version of eng.traineddata. For me downloading and replacing with older version of it fixed the issue. You can try to use older version of this file from here https://github.com/tesseract-ocr/tessdata/blob/3.04.00/eng.traineddata with:
wget https://github.com/tesseract-ocr/tessdata/raw/3.04.00/eng.traineddata
and save it in your tessdata folder (ex. /usr/share/tessdata)
@kkaczmarczyk Yup, that same worked for me very long back. I didn't updated that information here
Thank you for bumping, marking it as close.
System Info :1234:
gem list tesseract-ocr -d
tesseract -v
ruby -v
tesseract_engine_object #<Tesseract::Engine:0x00000001ae7aa8 @api=#<Tesseract::API:0x00000001ae7828 @internal=#>, @initializing=false, @init=#Proc:0x00000001ae79e0@main.rb:3, @path=nil, @language=:eng, @mode=:DEFAULT, @variables={"tessedit_char_blacklist"=>"|"}, @config=[], @rectangle=[]>
index >= 0 && index < sizeused:Error:Assert failed:in file ../ccutil/genericvector.h, line 512
/home/rajeev/.rvm/gems/ruby-2.0.0-p598/gems/tesseract-ocr-0.1.8/lib/tesseract/api.rb:157: [BUG] Segmentation fault
ruby 2.0.0p598 (2014-11-13 revision 48408) [x86_64-linux]
-- Control frame information ----------------------------------------------- c:0007 p:---- s:0028 e:000027 CFUNC :get_utf8_text c:0006 p:---- s:0026 e:000025 IFUNC
[Complete log trace](https://gist.github.com/rajeevkannav/41d84e95a635c2f54dcf
@meh Any