Class: RHOCR
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
|
#lines ⇒ Object
14
15
16
|
# File 'lib/rhocr.rb', line 14
def lines
Enumerator.new(self,:each_line)
end
|
#words ⇒ Object
10
11
12
|
# File 'lib/rhocr.rb', line 10
def words
Enumerator.new(self,:each_word)
end
|