Cloud AutoML V1beta1 Client - Class ImageObjectDetectionAnnotation (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class ImageObjectDetectionAnnotation.

Annotation details for image object detection.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ bounding_box Google\Cloud\AutoMl\V1beta1\BoundingPoly

Output only. The rectangle representing the object location.

↳ score float

Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.

getBoundingBox

Output only. The rectangle representing the object location.

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

hasBoundingBox

clearBoundingBox

setBoundingBox

Output only. The rectangle representing the object location.

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

getScore

Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.

Returns
TypeDescription
float

setScore

Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.

Parameter
NameDescription
var float
Returns
TypeDescription
$this