# Extract text from images (using OCR) > Supported in: Batch, Faster Extracts text from an image with configurable output formats. **Expression categories:** Media ## Declared arguments * **Languages to detect:** Languages to detect in the input files.
*Set\>* * **Media reference:** The column containing media references to image files in a media set.
*Expression\* * **Scripts to detect:** Scripts to detect in the input files.
*Set\>* * *optional* **Error handling:** Determines the behavior of the pipeline for inputs that fail to process.
*Enum\* * *optional* **Output format:** The format of the extracted text output.
*Enum\* **Output type:** *String* ## Examples ### Example 1: Base case **Argument values:** * **Languages to detect:** {`ENG`} * **Media reference:** `mediaReference` * **Scripts to detect:** {} * **Error handling:** `FAIL_FAST` * **Output format:** `TEXT` | mediaReference | **Output** | | ----- | ----- | | {"mimeType":"image/png","reference":{"type":"mediaSetItem","mediaSetItem":{"mediaSetRid":"ri.mio.main.media-set.a", "mediaItemRid":"ri.mio.main.media-item.a"}}} | This text came from the image in the media set. | ***