Document AI V1 API - Class Google::Cloud::DocumentAI::V1::NormalizedVertex (v0.14.0)

Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::NormalizedVertex.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#x

def x() -> ::Float
Returns
  • (::Float) — X coordinate.

#x=

def x=(value) -> ::Float
Parameter
  • value (::Float) — X coordinate.
Returns
  • (::Float) — X coordinate.

#y

def y() -> ::Float
Returns
  • (::Float) — Y coordinate (starts from the top of the image).

#y=

def y=(value) -> ::Float
Parameter
  • value (::Float) — Y coordinate (starts from the top of the image).
Returns
  • (::Float) — Y coordinate (starts from the top of the image).