module Tesseract::OcrWords

Overview

This Module is a wrapper of tesseract-ocr

Extended Modules

Defined in:

tesseract-ocr-words.cr

Instance Method Summary

Instance Method Detail

def content_match(string, re) #

[View source]
def parse(content) #

[View source]
def parse_confidence(line) #

[View source]
def parse_line(line) #

[View source]
def parse_position(line) #

[View source]
def 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"

[View source]
def word_info(word, positions, confidence) #

[View source]