Class: Google::Cloud::DocumentAI::V1beta3::NormalizedVertex

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

Overview

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

Instance Attribute Summary collapse

Instance Attribute Details

#x::Float

Returns X coordinate.

Returns:

  • (::Float)

    X coordinate.



46
47
48
49
# File 'proto_docs/google/cloud/documentai/v1beta3/geometry.rb', line 46

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

#y::Float

Returns Y coordinate (starts from the top of the image).

Returns:

  • (::Float)

    Y coordinate (starts from the top of the image).



46
47
48
49
# File 'proto_docs/google/cloud/documentai/v1beta3/geometry.rb', line 46

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