---
title: "POST /contentmoderator/moderate/v1.0/ProcessImage/OCR"
method: POST
path: "/contentmoderator/moderate/v1.0/ProcessImage/OCR"
tags: ["ImageModeration"]
---

# POST /contentmoderator/moderate/v1.0/ProcessImage/OCR

`POST /contentmoderator/moderate/v1.0/ProcessImage/OCR`

Returns any text found in the image for the specified language. If no language is specified in the input, the detection defaults to English.

## Query parameters

- `language` string, required
- `CacheImage` boolean
- `enhanced` boolean

## Response `200`

Text found and list of candidate text details.

- OCR — Contains the text found in an image for the specified language.
  - `Status` Status — Status properties.
    - `Code` integer — Status code.
    - `Description` string — Status description.
    - `Exception` string — Exception status.
  - `Metadata` KeyValuePair[] — Array of key/value pairs.
    - `Key` string — Key parameter.
    - `Value` string — Value parameter.
  - `TrackingId` string — Tracking ID.
  - `CacheId` string — Cache ID.
  - `Language` string — ISO 639-3 code.
  - `Text` string — Found text.
  - `Candidates` Candidate[] — List of candidate text.
    - `Text` string — Text found.
    - `Confidence` number — Confidence level.

## Other responses

- `default` — Error response.

---

[API](https://skmtc.net/azure/apis/content-moderator-client.md) · [All operations](https://skmtc.net/azure/apis/content-moderator-client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/content-moderator-client/revisions/463151b3b84e/schema)
