ruby-tesseract-ocr icon indicating copy to clipboard operation
ruby-tesseract-ocr copied to clipboard

fixes for tesseract 3.04

Open ortutay opened this issue 10 years ago • 2 comments

Fixes for tesseract 3.04

ortutay avatar Aug 28 '15 21:08 ortutay

Does this actually make it work? TessResultRenderer is not a STRING anymore, and the Ruby side expects a STRING.

meh avatar Aug 28 '15 22:08 meh

@meh this PR is working well on my Mac.

  bool ProcessPages(const char* filename, const char* retry_config,
                    int timeout_millisec, TessResultRenderer* renderer);

in tesseract/3.04.01_2/include/tesseract/baseapi.h. ProcessPages expects TessResultRenderer.

my Mac info:

Mac OS X El Capitan(10.11.6)
    30:   File.open(log, 'a') {|f|
    31:     f.puts(cmd)
    32:   }
 => 33:   binding.pry
    34:   unless system(cmd)
    36:     raise CompilationError.new(log)
    37:   end

[1] pry(#<#<Class:0x007fdd242135a0>>)> system(cmd)
=> true

hirokishirai avatar Nov 08 '16 07:11 hirokishirai