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
|
it 'should not read by OCR lib' do
|
||||||
results = []
|
results = []
|
||||||
@samples.each do |chars|
|
@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}"
|
results << "- Chars: #{chars}, OCR read #{str.strip}"
|
||||||
expect(chars).not_to eq(str)
|
expect(chars).not_to eq(str)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue