module

Tesseract::Ocr

This Module is a wrapper of tesseract-ocr

Constants

VERSION = "0.1.2"

Instance methods

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"
Source
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"
Source
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"
Source

Nested types