Class: Tesseract::Engine::Iterator::Word

Inherits:
Element
  • Object
show all
Defined in:
lib/tesseract/engine/iterator.rb

Instance Method Summary collapse

Methods inherited from Element

#baseline, #binary_image, #bounding_box, #confidence, for, #image, #initialize, #inspect, #orientation, #text

Constructor Details

This class inherits a constructor from Tesseract::Engine::Iterator::Element

Instance Method Details

#font_attributesObject



96
97
98
# File 'lib/tesseract/engine/iterator.rb', line 96

def font_attributes
	FontAttributes.new(@iterator.word_font_attributes)
end

#from_dictionary?Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/tesseract/engine/iterator.rb', line 101

def from_dictionary?
	@iterator.word_is_from_dictionary?
end

#numeric?Boolean

Returns:

  • (Boolean)


106
107
108
# File 'lib/tesseract/engine/iterator.rb', line 106

def numeric?
	@iterator.word_is_numeric?
end