Class: Kreuzberg::Result::Image
- Inherits:
-
Struct
- Object
- Struct
- Kreuzberg::Result::Image
- Defined in:
- lib/kreuzberg/result.rb
Instance Attribute Summary collapse
-
#bits_per_component ⇒ Object
Returns the value of attribute bits_per_component.
-
#bounding_box ⇒ Object
Returns the value of attribute bounding_box.
-
#colorspace ⇒ Object
Returns the value of attribute colorspace.
-
#data ⇒ Object
Returns the value of attribute data.
-
#description ⇒ Object
Returns the value of attribute description.
-
#format ⇒ Object
Returns the value of attribute format.
-
#height ⇒ Object
Returns the value of attribute height.
-
#image_index ⇒ Object
Returns the value of attribute image_index.
-
#is_mask ⇒ Object
Returns the value of attribute is_mask.
-
#ocr_result ⇒ Object
Returns the value of attribute ocr_result.
-
#page_number ⇒ Object
Returns the value of attribute page_number.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
Instance Attribute Details
#bits_per_component ⇒ Object
Returns the value of attribute bits_per_component
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def bits_per_component @bits_per_component end |
#bounding_box ⇒ Object
Returns the value of attribute bounding_box
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def bounding_box @bounding_box end |
#colorspace ⇒ Object
Returns the value of attribute colorspace
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def colorspace @colorspace end |
#data ⇒ Object
Returns the value of attribute data
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def data @data end |
#description ⇒ Object
Returns the value of attribute description
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def description @description end |
#format ⇒ Object
Returns the value of attribute format
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def format @format end |
#height ⇒ Object
Returns the value of attribute height
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def height @height end |
#image_index ⇒ Object
Returns the value of attribute image_index
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def image_index @image_index end |
#is_mask ⇒ Object
Returns the value of attribute is_mask
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def is_mask @is_mask end |
#ocr_result ⇒ Object
Returns the value of attribute ocr_result
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def ocr_result @ocr_result end |
#page_number ⇒ Object
Returns the value of attribute page_number
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def page_number @page_number end |
#width ⇒ Object
Returns the value of attribute width
74 75 76 |
# File 'lib/kreuzberg/result.rb', line 74 def width @width end |
Instance Method Details
#to_h ⇒ Object
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/kreuzberg/result.rb', line 88 def to_h { data: data, format: format, image_index: image_index, page_number: page_number, width: width, height: height, colorspace: colorspace, bits_per_component: bits_per_component, is_mask: is_mask, description: description, bounding_box: bounding_box&.to_h, ocr_result: ocr_result&.to_h } end |