RTesseract use mini_magick.

This commit is contained in:
Jason Lee 2015-10-29 18:28:11 +08:00
parent 2508a05589
commit 13cd85dc6e
1 changed files with 1 additions and 1 deletions

View File

@ -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