# Google Cloud Vision Ai V1 Client - Class ImageObjectDetectionPredictionResult (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class ImageObjectDetectionPredictionResult.

Prediction output format for Image Object Detection.

Generated from protobuf message `google.cloud.visionai.v1.ImageObjectDetectionPredictionResult`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ids` | `int[]|string[]` The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly. It is the id segment instead of full resource name. |
| `↳ display_names` | `string[]` The display names of the AnnotationSpecs that had been identified, order matches the IDs. |
| `↳ confidences` | `float[]` The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids. |
| `↳ bboxes` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/ListValue>` Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers `xMin`, `xMax`, `yMin`, and `yMax`, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image. |

### getIds

The resource IDs of the AnnotationSpecs that had been identified, ordered
by the confidence score descendingly. It is the id segment instead of full
resource name.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setIds

The resource IDs of the AnnotationSpecs that had been identified, ordered
by the confidence score descendingly. It is the id segment instead of full
resource name.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int[]|string[]` |

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

### getDisplayNames

The display names of the AnnotationSpecs that had been identified, order
matches the IDs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setDisplayNames

The display names of the AnnotationSpecs that had been identified, order
matches the IDs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

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

### getConfidences

The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence. Order matches the Ids.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<float>` |   |

### setConfidences

The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence. Order matches the Ids.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float[]` |

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

### getBboxes

Bounding boxes, i.e. the rectangles over the image, that pinpoint
the found AnnotationSpecs. Given in order that matches the IDs. Each
bounding box is an array of 4 numbers `xMin`, `xMax`, `yMin`, and
`yMax`, which represent the extremal coordinates of the box. They are
relative to the image size, and the point 0,0 is in the top left
of the image.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/ListValue>` |   |

### setBboxes

Bounding boxes, i.e. the rectangles over the image, that pinpoint
the found AnnotationSpecs. Given in order that matches the IDs. Each
bounding box is an array of 4 numbers `xMin`, `xMax`, `yMin`, and
`yMax`, which represent the extremal coordinates of the box. They are
relative to the image size, and the point 0,0 is in the top left
of the image.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/ListValue>` |

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