Cloud AutoML V1beta1 Client - Class NormalizedVertex (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class 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.

Generated from protobuf message google.cloud.automl.v1beta1.NormalizedVertex

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ x float

Required. Horizontal coordinate.

↳ y float

Required. Vertical coordinate.

getX

Required. Horizontal coordinate.

Returns
TypeDescription
float

setX

Required. Horizontal coordinate.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getY

Required. Vertical coordinate.

Returns
TypeDescription
float

setY

Required. Vertical coordinate.

Parameter
NameDescription
var float
Returns
TypeDescription
$this