Class: Aws::Rekognition::Types::Point

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb

Overview

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 Point objects makes up a Polygon. A Polygon is returned by DetectText and by DetectCustomLabels Polygon represents a fine-grained polygon around a detected item. For more information, see Geometry in the Amazon Rekognition Developer Guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#xFloat

The value of the X coordinate for a point on a Polygon.

Returns:

  • (Float)


5743
5744
5745
5746
5747
5748
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 5743

class Point < Struct.new(
  :x,
  :y)
  SENSITIVE = []
  include Aws::Structure
end

#yFloat

The value of the Y coordinate for a point on a Polygon.

Returns:

  • (Float)


5743
5744
5745
5746
5747
5748
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 5743

class Point < Struct.new(
  :x,
  :y)
  SENSITIVE = []
  include Aws::Structure
end