@Generated(value="software.amazon.awssdk:codegen") public final class BoundingBox extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BoundingBox.Builder,BoundingBox>
The bounding box around the detected page, text, key-value pair, table, table cell, or selection 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).
The 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).
The 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BoundingBox.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BoundingBox.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Float |
height()
The height of the bounding box as a ratio of the overall document page height.
|
Float |
left()
The left coordinate of the bounding box as a ratio of overall document page width.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends BoundingBox.Builder> |
serializableBuilderClass() |
BoundingBox.Builder |
toBuilder() |
Float |
top()
The top coordinate of the bounding box as a ratio of overall document page height.
|
String |
toString()
Returns a string representation of this object.
|
Float |
width()
The width of the bounding box as a ratio of the overall document page width.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Float width()
The width of the bounding box as a ratio of the overall document page width.
public final Float height()
The height of the bounding box as a ratio of the overall document page height.
public final Float left()
The left coordinate of the bounding box as a ratio of overall document page width.
public final Float top()
The top coordinate of the bounding box as a ratio of overall document page height.
public BoundingBox.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BoundingBox.Builder,BoundingBox>public static BoundingBox.Builder builder()
public static Class<? extends BoundingBox.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.