From 13cd85dc6e0fbd22dd277257e065bbdc21ff43dd Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 29 Oct 2015 18:28:11 +0800 Subject: [PATCH] RTesseract use mini_magick. --- spec/ocr_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ocr_spec.rb b/spec/ocr_spec.rb index d85a963..6942773 100644 --- a/spec/ocr_spec.rb +++ b/spec/ocr_spec.rb @@ -24,7 +24,7 @@ describe 'OCR' do it 'should not read by OCR lib' do results = [] @samples.each do |chars| - str = RTesseract.new(File.join(File.dirname(__FILE__), "..", "tmp", "#{chars}.png")).to_s + str = RTesseract.new(File.join(File.dirname(__FILE__), "..", "tmp", "#{chars}.png"), processor: 'mini_magick').to_s results << "- Chars: #{chars}, OCR read #{str.strip}" expect(chars).not_to eq(str) end