# Cloud AutoML V1 Client - Class ImageObjectDetectionAnnotation (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.6.5 1.5.4 1.4.17 Reference documentation and code samples for the Cloud AutoML V1 Client class ImageObjectDetectionAnnotation.

Annotation details for image object detection.

Generated from protobuf message `google.cloud.automl.v1.ImageObjectDetectionAnnotation`

## Namespace

Google \\ Cloud \\ AutoMl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ bounding_box` | `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.BoundingPoly|null` |   |

### hasBoundingBox

### clearBoundingBox

### setBoundingBox

Output only. The rectangle representing the object location.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.BoundingPoly` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |