Sha256: e7f42fdf0f9398178abf0c4a2f57c48735f3b2698674037f574af5e639aa8cfa
Contents?: true
Size: 357 Bytes
Versions: 3
Compression:
Stored size: 357 Bytes
Contents
class RTesseract class << self def tesseract_version Open3.capture2e(RTesseract.config.command, "--version").first.to_s.match(/\d+.\d+/)[0].to_f rescue Errno::ENOENT 0 end def check_version! raise RTesseract::Error.new('Tesseract OCR 3.5 or later not installed') if RTesseract.tesseract_version < 3.05 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rtesseract-3.0.2 | lib/rtesseract/check.rb |
rtesseract-3.0.1 | lib/rtesseract/check.rb |
rtesseract-3.0.0 | lib/rtesseract/check.rb |