interface PointProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Rekognition.Mixins.CfnStreamProcessorPropsMixin.PointProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsrekognition/mixins#CfnStreamProcessorPropsMixin_PointProperty |
Java | software.amazon.awscdk.mixins.preview.services.rekognition.mixins.CfnStreamProcessorPropsMixin.PointProperty |
Python | aws_cdk.mixins_preview.aws_rekognition.mixins.CfnStreamProcessorPropsMixin.PointProperty |
TypeScript | @aws-cdk/mixins-preview » aws_rekognition » mixins » CfnStreamProcessorPropsMixin » PointProperty |
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 { mixins as rekognition_mixins } from '@aws-cdk/mixins-preview/aws-rekognition';
const pointProperty: rekognition_mixins.CfnStreamProcessorPropsMixin.PointProperty = {
x: 123,
y: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| x? | number | The value of the X coordinate for a point on a Polygon . |
| y? | number | The value of the Y coordinate for a point on a Polygon . |
x?
Type:
number
(optional)
The value of the X coordinate for a point on a Polygon .
y?
Type:
number
(optional)
The value of the Y coordinate for a point on a Polygon .

.NET
Go
Java
Python
TypeScript