ruby-tesseract-ocr
ruby-tesseract-ocr copied to clipboard
fixes for tesseract 3.04
Fixes for tesseract 3.04
Does this actually make it work? TessResultRenderer is not a STRING anymore, and the Ruby side expects a STRING.
@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