Quick Start
1
Simple Usage
2
With Configuration
User Interaction Flow
Configuration Levels
Common Uses
Dedicated OCRAgent class
OCRAgent calls a real OCR backend through a required extractor function.
OCRAgentConfig
OCRConfig
OCRExtractRequest
The extractor receives this request:OCRResult
The extractor returns this shape:API Reference
OCRConfig
Complete configuration options
OCRAgent
Full class documentation
Best Practices
Use high detail for small text
Use high detail for small text
Set
detail: 'high' when reading receipts or documents.Be specific about what to extract
Be specific about what to extract
“Extract the total and date” works better than “read this”.
Use good quality images
Use good quality images
Clear, well-lit images produce better results.
Related
Vision
Image analysis
Files
File operations

