OCR

Extract text content from images using optical character recognition.

Requires an API key. Run devv login <key> first.

Commands

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

Examples

# 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
devv pipe exec "ocr" "./document.png"

Behavior

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

Was this page helpful?