rtesseract icon indicating copy to clipboard operation
rtesseract copied to clipboard

Rails can't locate tesseract directory

Open AshIgnYeo opened this issue 3 years ago • 0 comments

I'm in a new rails 7 app running webpack. When I try to run

image_path = ActionController::Base.helpers.image_url('receipt.jpg')
image = RTesseract.new(image_path, lang: 'eng')
image.to_s

I keep getting the error

Errno::ENOENT: No such file or directory - tesseract

even though I have followed all the steps for setup. Any idea how to fix it?

AshIgnYeo avatar Aug 20 '22 03:08 AshIgnYeo