Class: Google::Cloud::Vision::V1::Position

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/vision/v1/geometry.rb

Overview

A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image.

Instance Attribute Summary collapse

Instance Attribute Details

#x::Float

Returns X coordinate.

Returns:

  • (::Float)

    X coordinate.



75
76
77
78
# File 'proto_docs/google/cloud/vision/v1/geometry.rb', line 75

class Position
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#y::Float

Returns Y coordinate.

Returns:

  • (::Float)

    Y coordinate.



75
76
77
78
# File 'proto_docs/google/cloud/vision/v1/geometry.rb', line 75

class Position
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#z::Float

Returns Z coordinate (or depth).

Returns:

  • (::Float)

    Z coordinate (or depth).



75
76
77
78
# File 'proto_docs/google/cloud/vision/v1/geometry.rb', line 75

class Position
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end