Skip to main content

extract_text

Method
This is a method of the VisionAgent class in the vision_agent module.
Extract text from an image (OCR-like functionality).

Signature

Parameters

image
str
required
Image URL or local file path
detail
Optional
Detail level (low, high, auto) - recommend “high” for text
model
Optional
Override model for this call **kwargs: Additional parameters

Returns

Returns
str
Extracted text

Usage

Uses

  • analyze

Source

View on GitHub

praisonaiagents/agent/vision_agent.py at line 356