@Stability(value=Stable)
public static interface CfnStreamProcessor.PointProperty
extends software.amazon.jsii.JsiiSerializable
The X and Y values are ratios of the overall image size or video resolution. For example, if the 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 Point objects, Polygon , is returned by DetectText and by DetectCustomLabels or used to define regions of interest in Amazon Rekognition Video operations such as CreateStreamProcessor . Polygon represents a fine-grained polygon around a detected item. For more information, see Geometry .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rekognition.*;
PointProperty pointProperty = PointProperty.builder()
.x(123)
.y(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnStreamProcessor.PointProperty.Builder
A builder for
CfnStreamProcessor.PointProperty |
static class |
CfnStreamProcessor.PointProperty.Jsii$Proxy
An implementation for
CfnStreamProcessor.PointProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnStreamProcessor.PointProperty.Builder |
builder() |
Number |
getX()
The value of the X coordinate for a point on a `Polygon` .
|
Number |
getY()
The value of the Y coordinate for a point on a `Polygon` .
|
@Stability(value=Stable) @NotNull Number getX()
@Stability(value=Stable) @NotNull Number getY()
@Stability(value=Stable) static CfnStreamProcessor.PointProperty.Builder builder()
Copyright © 2022. All rights reserved.