Class: Tesseract::DependencyChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/tesseract/dependency_checker.rb

Constant Summary collapse

IMAGE_MAGICK_ERROR =

putting these here so its easyer to test

"ImageMagick \"convert\" command not found! Make sure ImageMagick is installed and in the system path"
TESSERACT_ERROR =
"\"tesseract\" command not found! Make sure tesseract is installed and in the system path"
OS_ERROR =
"Only Unix Based enviroments are supported Mac, Linux, etc."

Class Method Summary collapse

Class Method Details

.check!Object



8
9
10
11
12
13
# File 'lib/tesseract/dependency_checker.rb', line 8

def self.check!
  check_os!
  check_for_tesseract!
  check_for_imagemagick!
  true
end