module

Tesseract::OcrWords

This Module is a wrapper of tesseract-ocr

Instance methods

content_match(string, re)
Source
parse(content)
Source
parse_confidence(line)
Source
parse_line(line)
Source
parse_position(line)
Source
read(path, options = Hash(Symbol, String | Int32).new)

This function reads the words on image by OCR then returns with the positions

Tesseract::OcrWords.read("spec/resources/world.png") => "world"
Source
word_info(word, positions, confidence)
Source