Google Cloud Datalabeling V1beta1 Client - Class ImageBoundingPolyAnnotation (0.1.14)

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class ImageBoundingPolyAnnotation.

Image bounding poly annotation. It represents a polygon including bounding box in the image.

Generated from protobuf message google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ bounding_poly Google\Cloud\DataLabeling\V1beta1\BoundingPoly
↳ normalized_bounding_poly Google\Cloud\DataLabeling\V1beta1\NormalizedBoundingPoly
↳ annotation_spec Google\Cloud\DataLabeling\V1beta1\AnnotationSpec

Label of object in this bounding polygon.

getBoundingPoly

Generated from protobuf field .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\BoundingPoly|null

hasBoundingPoly

setBoundingPoly

Generated from protobuf field .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\BoundingPoly
Returns
TypeDescription
$this

getNormalizedBoundingPoly

Generated from protobuf field .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\NormalizedBoundingPoly|null

hasNormalizedBoundingPoly

setNormalizedBoundingPoly

Generated from protobuf field .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\NormalizedBoundingPoly
Returns
TypeDescription
$this

getAnnotationSpec

Label of object in this bounding polygon.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\AnnotationSpec|null

hasAnnotationSpec

clearAnnotationSpec

setAnnotationSpec

Label of object in this bounding polygon.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\AnnotationSpec
Returns
TypeDescription
$this

getBoundedArea

Returns
TypeDescription
string