Interface CfnStreamProcessor.PointProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnStreamProcessor.PointProperty.Jsii$Proxy
- Enclosing class:
CfnStreamProcessor
@Stability(Stable)
public static interface CfnStreamProcessor.PointProperty
extends software.amazon.jsii.JsiiSerializable
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 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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnStreamProcessor.PointProperty
static final class
An implementation forCfnStreamProcessor.PointProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getX
The value of the X coordinate for a point on aPolygon
.- See Also:
-
getY
The value of the Y coordinate for a point on aPolygon
.- See Also:
-
builder
-