Class: RHOCR

Inherits:
OCRDocument show all
Defined in:
lib/rhocr.rb

Instance Attribute Summary

Attributes inherited from OCRDocument

#page_count, #pages

Instance Method Summary collapse

Methods inherited from OCRDocument

#add_image_to_page, #add_page, #add_pages, #each_line, #each_page, #each_word, #initialize, #page

Constructor Details

This class inherits a constructor from OCRDocument

Instance Method Details

#add_folder(path) ⇒ Object



6
7
8
# File 'lib/rhocr.rb', line 6

def add_folder(path)
    add_files Dir[path]
end

#linesObject



14
15
16
# File 'lib/rhocr.rb', line 14

def lines
    Enumerator.new(self,:each_line)
end

#wordsObject



10
11
12
# File 'lib/rhocr.rb', line 10

def words
    Enumerator.new(self,:each_word)
end