# Cloud Vision V1 Client - Class CropHintsAnnotation (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 Reference documentation and code samples for the Cloud Vision V1 Client class CropHintsAnnotation.

Set of crop hints that are used to generate new crops when serving images.

Generated from protobuf message `google.cloud.vision.v1.CropHintsAnnotation`

## Namespace

Google \\ Cloud \\ Vision \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ crop_hints` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.CropHint>` Crop hint results. |

### getCropHints

Crop hint results.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.CropHint>` |   |

### setCropHints

Crop hint results.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vision/latest/V1.CropHint>` |

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