RTesseract use mini_magick.
This commit is contained in:
parent
2508a05589
commit
13cd85dc6e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue