RTesseract use mini_magick.
This commit is contained in:
1 parent
2508a05589
commit
13cd85dc6e
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user