Class CfnStreamProcessor.PointProperty
The X and Y coordinates of a point on an image or video frame.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Rekognition
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PointProperty : Object, CfnStreamProcessor.IPointProperty
Syntax (vb)
Public Class PointProperty
Inherits Object
Implements CfnStreamProcessor.IPointProperty
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Rekognition;
var pointProperty = new PointProperty {
X = 123,
Y = 123
};
Synopsis
Constructors
PointProperty() |
Properties
X | The value of the X coordinate for a point on a |
Y | The value of the Y coordinate for a point on a |
Constructors
PointProperty()
public PointProperty()
Properties
X
The value of the X coordinate for a point on a Polygon
.
public double X { get; set; }
Property Value
System.Double
Remarks
Y
The value of the Y coordinate for a point on a Polygon
.
public double Y { get; set; }
Property Value
System.Double