Skip to main content

ocr_agent

AI Agent OCRAgent - A specialized agent class for OCR (Optical Character Recognition). Extracts text from documents and images using AI models. Follows the Agent() class patterns:
  • Precedence Ladder: Instance > Config > Array > Dict > String > Bool > Default
  • Lazy imports for LiteLLM (zero overhead until first use)
  • Async-safe with both sync and async methods

Import

from praisonaiagents.agent import ocr_agent

Classes