NAME
Google::Cloud::Vision::V1::Geometry - Compiled Protocol Buffers messages for google/cloud/vision/v1/geometry.proto
SYNOPSIS
use Google::Cloud::Vision::V1::Geometry;
my $msg = Google::Cloud::Vision::V1::Geometry::Vertex->new({
x => $x,
y => $y,
});
# Read or update a field
my $val = $msg->x();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Vision::V1::Geometry::Vertex->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/vision/v1/geometry.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Vision::V1::Geometry::Vertex
A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
Inherits from Protobuf::Message.
Accessors
$msg->x()/$msg->x($value)Type:
Int32X coordinate.
$msg->y()/$msg->y($value)Type:
Int32Y coordinate.
Google::Cloud::Vision::V1::Geometry::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 from Protobuf::Message.
Accessors
$msg->x()/$msg->x($value)Type:
FloatX coordinate.
$msg->y()/$msg->y($value)Type:
FloatY coordinate.
Google::Cloud::Vision::V1::Geometry::BoundingPoly
A bounding polygon for the detected image annotation.
Inherits from Protobuf::Message.
Accessors
$msg->vertices()/$msg->vertices($value)Type:
Message(Google::Cloud::Vision::V1::Geometry::Vertex)The bounding polygon vertices.
$msg->normalized_vertices()/$msg->normalized_vertices($value)Type:
Message(Google::Cloud::Vision::V1::Geometry::NormalizedVertex)The bounding polygon normalized vertices.
Google::Cloud::Vision::V1::Geometry::Position
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.
Inherits from Protobuf::Message.
Accessors
$msg->x()/$msg->x($value)Type:
FloatX coordinate.
$msg->y()/$msg->y($value)Type:
FloatY coordinate.
$msg->z()/$msg->z($value)Type:
FloatZ coordinate (or depth).
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Vision::V1::Geometry::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.