public static class BoundingPolygon.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BoundingPolygon |
build() |
BoundingPolygon.Builder |
copy(BoundingPolygon model) |
BoundingPolygon.Builder |
normalizedVertices(List<NormalizedVertex> normalizedVertices)
An array of normalized points defining the polygon’s perimeter, with an implicit segment
between subsequent points and between the first and last point.
|
public BoundingPolygon.Builder normalizedVertices(List<NormalizedVertex> normalizedVertices)
An array of normalized points defining the polygon’s perimeter, with an implicit segment
between subsequent points and between the first and last point. Rectangles are defined
with four points. For example, [{"x": 0, "y": 0}, {“x”: 1, “y”: 0}, {“x”: 1, “y”:
0.5}, {“x”: 0, “y”: 0.5}]
represents the top half of an image.
normalizedVertices
- the value to setpublic BoundingPolygon build()
public BoundingPolygon.Builder copy(BoundingPolygon model)
Copyright © 2016–2024. All rights reserved.