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

OCRConfig

Configuration for OCR settings.

OCRAgent

A specialized agent for OCR (Optical Character Recognition).

Agents Concept

Single Agent Guide

Multi-Agent Guide

Agent Configuration

Auto Agents