module Tesseract::Ocr
Overview
This Module is a wrapper of tesseract-ocr
Extended Modules
Defined in:
command.crtesseract-ocr.cr
Constant Summary
-
VERSION =
"0.1.2"
Instance Method Summary
-
#read(path, options = Hash(Symbol, String | Int32).new)
This function reads the chars on image by OCR
-
#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.
-
#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.
Instance Method Detail
This function reads the chars on image by OCR
Tesseract::Ocr.read("spec/resources/world.png") => "world"
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"
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"