Class Point
- java.lang.Object
-
- software.amazon.awssdk.services.rekognition.model.Point
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Point.Builder,Point>
@Generated("software.amazon.awssdk:codegen") public final class Point extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Point.Builder,Point>
The X and Y coordinates of a point on an image or video frame. The X and Y values are ratios of the overall image size or video resolution. For example, if an input image is 700x200 and the values are X=0.5 and Y=0.25, then the point is at the (350,50) pixel coordinate on the image.
An array of
Pointobjects makes up aPolygon. APolygonis returned by DetectText and by DetectCustomLabelsPolygonrepresents a fine-grained polygon around a detected item. For more information, see Geometry in the Amazon Rekognition Developer Guide.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePoint.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Point.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Point.Builder>serializableBuilderClass()Point.BuildertoBuilder()StringtoString()Returns a string representation of this object.Floatx()The value of the X coordinate for a point on aPolygon.Floaty()The value of the Y coordinate for a point on aPolygon.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
x
public final Float x()
The value of the X coordinate for a point on a
Polygon.- Returns:
- The value of the X coordinate for a point on a
Polygon.
-
y
public final Float y()
The value of the Y coordinate for a point on a
Polygon.- Returns:
- The value of the Y coordinate for a point on a
Polygon.
-
toBuilder
public Point.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Point.Builder,Point>
-
builder
public static Point.Builder builder()
-
serializableBuilderClass
public static Class<? extends Point.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-