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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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.

[1]: docs.aws.amazon.com/textract/latest/dg/API_BoundingBox.html

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 '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 '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 '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 'lib/aws-sdk-comprehend/types.rb', line 631

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