Class: Aws::Comprehend::Types::BoundingBox

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb

Overview

The bounding box around the detected page or around an element on a document page. The left (x-coordinate) and top (y-coordinate) are coordinates that represent the top and left sides of the bounding box. Note that the upper-left corner of the image is the origin (0,0).

For additional information, see BoundingBox in the Amazon Textract API reference.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#heightFloat

The height of the bounding box as a ratio of the overall document page height.

Returns:

  • (Float)


631
632
633
634
635
636
637
638
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 631

class BoundingBox < Struct.new(
  :height,
  :left,
  :top,
  :width)
  SENSITIVE = []
  include Aws::Structure
end

#leftFloat

The left coordinate of the bounding box as a ratio of overall document page width.

Returns:

  • (Float)


631
632
633
634
635
636
637
638
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 631

class BoundingBox < Struct.new(
  :height,
  :left,
  :top,
  :width)
  SENSITIVE = []
  include Aws::Structure
end

#topFloat

The top coordinate of the bounding box as a ratio of overall document page height.

Returns:

  • (Float)


631
632
633
634
635
636
637
638
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 631

class BoundingBox < Struct.new(
  :height,
  :left,
  :top,
  :width)
  SENSITIVE = []
  include Aws::Structure
end

#widthFloat

The width of the bounding box as a ratio of the overall document page width.

Returns:

  • (Float)


631
632
633
634
635
636
637
638
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 631

class BoundingBox < Struct.new(
  :height,
  :left,
  :top,
  :width)
  SENSITIVE = []
  include Aws::Structure
end