class Tesseract::Ocr::Command
- Tesseract::Ocr::Command
 - Reference
 - Object
 
Defined in:
command.crConstructors
Instance Method Summary
- #add_config(config)
 - #add_options(options)
 - 
        #command
        
          
This function will mount the options to tesseract OCR
 - #make_option(_name, value : Nil)
 - #make_option(name, value : Int | String)
 - #make_option(name, values : Array(String))
 - #make_short_option(_name, value : Nil)
 - #make_short_option(name, value : Int | String)
 - #make_short_option(name, values : Array(String))
 - #run
 
Constructor Detail
Instance Method Detail
        
        def command
        #
      
      
        This function will mount the options to tesseract OCR
Tesseract::Ocr.command("test/resources/world.png", { :l => "por", :oem => "1" }) => "test/resources/world.png stdout -l por --oem 1"]
Tesseract::Ocr.command("test/resources/world.png", { :l => "por", :psm => 1 }) => ["test/resources/world.png stdout -l por --psm 1"]
Tesseract::Ocr.command("test/resources/world.png", { :c => "var=b" }) => ["test/resources/world.png stdout -c var=b"]