module Tesseract::Ocr

Overview

This Module is a wrapper of tesseract-ocr

Extended Modules

Defined in:

command.cr
tesseract-ocr.cr

Constant Summary

VERSION = "0.1.2"

Instance Method Summary

Instance Method Detail

def read(path, options = Hash(Symbol, String | Int32).new) #

This function reads the chars on image by OCR

Tesseract::Ocr.read("spec/resources/world.png") => "world"

[View source]
def to_pdf(path, options = Hash(Symbol, String | Int32 | Array(String)).new) #

This function reads the chars on image by OCR and saves on a pdf file. and returning the path.

Tesseract::Ocr.to_pdf("spec/resources/world.png") => "/tmp/random_file.pdf"

[View source]
def to_tsv(path, options = Hash(Symbol, String | Int32 | Array(String)).new) #

This function reads the chars on image by OCR and saves on a tsv file. and returning the path.

Tesseract::Ocr.to_tsv("spec/resources/world.png") => "/tmp/random_file.tsv"

[View source]