---
title: OCR
description: Extract text from images using optical character recognition.
---

# OCR

Extract text content from images using optical character recognition.

<Warning>
Requires an API key. Run `devv login <key>` first.
</Warning>

## Commands

```bash
devv ocr ./receipt.png
devv ocr ./document.jpg
devv ocr ./whiteboard.png
```

## Examples

```bash
# Extract text from a receipt
devv ocr receipt.png

# Extract and save to file
devv ocr document.jpg > extracted.txt

# Extract and search
devv ocr screenshot.png | grep "error"
```

## Output

Returns the extracted text content from the image.

## Pipeline Usage

| Pipeline ID | Description |
|-------------|-------------|
| `ocr` | Extract text from image |

```bash
devv pipe exec "ocr" "./document.png"
```

### Behavior

Takes a file path as input, returns extracted text. The text passes to the next step.
