# AnnotateImageRequest

Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.

| JSON representation |
|---|
| ``` { "image": { object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/AnnotateImageRequest#Image`) }, "features": [ { object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/Feature`) } ], "imageContext": { object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/ImageContext`) } } ``` |

| Fields ||
|---|---|
| `image` | ``object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/AnnotateImageRequest#Image`)`` The image to be processed. |
| `features[]` | ``object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/Feature`)`` Requested features. |
| `imageContext` | ``object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/ImageContext`)`` Additional context that may accompany the image. |

## Image

Client image to perform Google Cloud Vision API tasks over.

| JSON representation |
|---|
| ``` { "content": string } ``` |

| Fields ||
|---|---|
| `content` | `string (https://developers.google.com/discovery/v1/type-format format)` Image content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64. Currently, this field only works for images.annotate requests. A base64-encoded string. |