Class: Aws::Comprehend::Types::BoundingBox
- Inherits:
-
Struct
- Object
- Struct
- Aws::Comprehend::Types::BoundingBox
- 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
-
#height ⇒ Float
The height of the bounding box as a ratio of the overall document page height.
-
#left ⇒ Float
The left coordinate of the bounding box as a ratio of overall document page width.
-
#top ⇒ Float
The top coordinate of the bounding box as a ratio of overall document page height.
-
#width ⇒ Float
The width of the bounding box as a ratio of the overall document page width.
Instance Attribute Details
#height ⇒ Float
The height of the bounding box as a ratio of the overall document page height.
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 |
#left ⇒ Float
The left coordinate of the bounding box as a ratio of overall document page width.
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 |
#top ⇒ Float
The top coordinate of the bounding box as a ratio of overall document page height.
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 |
#width ⇒ Float
The width of the bounding box as a ratio of the overall document page width.
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 |