class Tesseract::Ocr::Command

Defined in:

command.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, output : String) #

[View source]

Instance Method Detail

def add_config(config) #

[View source]
def add_options(options) #

[View source]
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"]

[View source]
def make_option(_name, value : Nil) #

[View source]
def make_option(name, value : Int | String) #

[View source]
def make_option(name, values : Array(String)) #

[View source]
def make_short_option(_name, value : Nil) #

[View source]
def make_short_option(name, value : Int | String) #

[View source]
def make_short_option(name, values : Array(String)) #

[View source]
def run #

[View source]