class

Tesseract::Ocr::Command

Inherits Reference / Object

Constructors

new(source : String, output : String)
Source

Instance methods

add_config(config)
Source
add_options(options)
Source
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"]
Source
make_option(_name, value : Nil)
Source
make_option(name, value : Int | String)
Source
make_option(name, values : Array(String))
Source
make_short_option(_name, value : Nil)
Source
make_short_option(name, value : Int | String)
Source
make_short_option(name, values : Array(String))
Source