public static interface Geometry.Builder extends SdkPojo, CopyableBuilder<Geometry.Builder,Geometry>
Modifier and Type | Method and Description |
---|---|
Geometry.Builder |
boundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected text's location on the image.
|
default Geometry.Builder |
boundingBox(Consumer<BoundingBox.Builder> boundingBox)
An axis-aligned coarse representation of the detected text's location on the image.
|
Geometry.Builder |
polygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected text.
|
Geometry.Builder |
polygon(Consumer<Point.Builder>... polygon)
Within the bounding box, a fine-grained polygon around the detected text.
|
Geometry.Builder |
polygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the detected text.
|
copy
applyMutation, build
Geometry.Builder boundingBox(BoundingBox boundingBox)
An axis-aligned coarse representation of the detected text's location on the image.
boundingBox
- An axis-aligned coarse representation of the detected text's location on the image.default Geometry.Builder boundingBox(Consumer<BoundingBox.Builder> boundingBox)
An axis-aligned coarse representation of the detected text's location on the image.
This is a convenience that creates an instance of theBoundingBox.Builder
avoiding the need to create
one manually via BoundingBox.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to boundingBox(BoundingBox)
.boundingBox
- a consumer that will call methods on BoundingBox.Builder
boundingBox(BoundingBox)
Geometry.Builder polygon(Collection<Point> polygon)
Within the bounding box, a fine-grained polygon around the detected text.
polygon
- Within the bounding box, a fine-grained polygon around the detected text.Geometry.Builder polygon(Point... polygon)
Within the bounding box, a fine-grained polygon around the detected text.
polygon
- Within the bounding box, a fine-grained polygon around the detected text.Geometry.Builder polygon(Consumer<Point.Builder>... polygon)
Within the bounding box, a fine-grained polygon around the detected text.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #polygon(List)
.polygon
- a consumer that will call methods on List.Builder
#polygon(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.