Tesseract::Ocr::Command
Inherits Reference / Object
Constructors
new(source : String, output : String)
SourceInstance methods
add_config(config)
Sourceadd_options(options)
Sourcecommand
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"]
make_option(_name, value : Nil)
Sourcemake_option(name, value : Int | String)
Sourcemake_option(name, values : Array(String))
Sourcemake_short_option(_name, value : Nil)
Sourcemake_short_option(name, value : Int | String)
Sourcemake_short_option(name, values : Array(String))
Sourcerun
Source