/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The bounding box around the detected page, text, key-value pair, table, table
* cell, or selection element on a document page. The The 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). top
and
* left
values returned are ratios of the overall document page size.
* For example, if the input image is 700 x 200 pixels, and the top-left coordinate
* of the bounding box is 350 x 50 pixels, the API returns a left
* value of 0.5 (350/700) and a top
value of 0.25 (50/200).width
and height
values represent the dimensions of
* the bounding box as a ratio of the overall document page dimension. For example,
* if the document page size is 700 x 200 pixels, and the bounding box width is 70
* pixels, the width returned is 0.1. See Also:
AWS
* API Reference
The width of the bounding box as a ratio of the overall document page * width.
*/ inline double GetWidth() const{ return m_width; } /** *The width of the bounding box as a ratio of the overall document page * width.
*/ inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; } /** *The width of the bounding box as a ratio of the overall document page * width.
*/ inline void SetWidth(double value) { m_widthHasBeenSet = true; m_width = value; } /** *The width of the bounding box as a ratio of the overall document page * width.
*/ inline BoundingBox& WithWidth(double value) { SetWidth(value); return *this;} /** *The height of the bounding box as a ratio of the overall document page * height.
*/ inline double GetHeight() const{ return m_height; } /** *The height of the bounding box as a ratio of the overall document page * height.
*/ inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; } /** *The height of the bounding box as a ratio of the overall document page * height.
*/ inline void SetHeight(double value) { m_heightHasBeenSet = true; m_height = value; } /** *The height of the bounding box as a ratio of the overall document page * height.
*/ inline BoundingBox& WithHeight(double value) { SetHeight(value); return *this;} /** *The left coordinate of the bounding box as a ratio of overall document page * width.
*/ inline double GetLeft() const{ return m_left; } /** *The left coordinate of the bounding box as a ratio of overall document page * width.
*/ inline bool LeftHasBeenSet() const { return m_leftHasBeenSet; } /** *The left coordinate of the bounding box as a ratio of overall document page * width.
*/ inline void SetLeft(double value) { m_leftHasBeenSet = true; m_left = value; } /** *The left coordinate of the bounding box as a ratio of overall document page * width.
*/ inline BoundingBox& WithLeft(double value) { SetLeft(value); return *this;} /** *The top coordinate of the bounding box as a ratio of overall document page * height.
*/ inline double GetTop() const{ return m_top; } /** *The top coordinate of the bounding box as a ratio of overall document page * height.
*/ inline bool TopHasBeenSet() const { return m_topHasBeenSet; } /** *The top coordinate of the bounding box as a ratio of overall document page * height.
*/ inline void SetTop(double value) { m_topHasBeenSet = true; m_top = value; } /** *The top coordinate of the bounding box as a ratio of overall document page * height.
*/ inline BoundingBox& WithTop(double value) { SetTop(value); return *this;} private: double m_width; bool m_widthHasBeenSet = false; double m_height; bool m_heightHasBeenSet = false; double m_left; bool m_leftHasBeenSet = false; double m_top; bool m_topHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws