NAME

Google::Cloud::Automl::V1::Geometry - Compiled Protocol Buffers messages for google/cloud/automl/v1/geometry.proto

SYNOPSIS

use Google::Cloud::Automl::V1::Geometry;

my $msg = Google::Cloud::Automl::V1::Geometry::NormalizedVertex->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::Automl::V1::Geometry::NormalizedVertex->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/automl/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::Automl::V1::Geometry::NormalizedVertex

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.

Inherits from Protobuf::Message.

Accessors

  • $msg->x() / $msg->x($value)

    Type: Float

    Required. Horizontal coordinate.

  • $msg->y() / $msg->y($value)

    Type: Float

    Required. Vertical coordinate.

Google::Cloud::Automl::V1::Geometry::BoundingPoly

A bounding polygon of a detected object on a plane. On output both vertices and normalized_vertices are provided. The polygon is formed by connecting vertices in the order they are listed.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Automl::V1::Geometry::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.