Class: Google::Cloud::AutoML::V1beta1::NormalizedVertex

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

Overview

A vertex represents a 2D point in the image. The normalized vertex coordinates are between 0 to 1 fractions relative to the original plane (image, video). E.g. if the plane (e.g. whole image) would have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would be at the position (1, 6) on that plane.

Instance Attribute Summary collapse

Instance Attribute Details

#x::Float

Returns Required. Horizontal coordinate.

Returns:

  • (::Float)

    Required. Horizontal coordinate.



35
36
37
38
# File 'proto_docs/google/cloud/automl/v1beta1/geometry.rb', line 35

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

#y::Float

Returns Required. Vertical coordinate.

Returns:

  • (::Float)

    Required. Vertical coordinate.



35
36
37
38
# File 'proto_docs/google/cloud/automl/v1beta1/geometry.rb', line 35

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