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