OCRAgent
Defined in the Ocr Agent module.AI Agent A specialized agent for OCR (Optical Character Recognition). Extracts text from documents (PDFs) and images using AI models. Supported Providers:
- Mistral:
mistral/mistral-ocr-latest
Constructor
Optional[str]
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Optional
No description available.
Union[bool, int]
default:"True"
No description available.
Methods
console()
Lazily initialize Rich Console.
litellm()
Lazy load litellm module when needed.
extract()
Extract text from a document or image.
aextract()
Async version of extract().
read()
Quick OCR - extract and return markdown text.
aread()
Async version of read().
Usage
Source
View on GitHub
praisonaiagents/agent/ocr_agent.py at line 41
