@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 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.
| 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 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 final Float width()
The width of the bounding box as a ratio of the overall document page width.
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.