Extract text from images
Process Image
use praisonai::{Agent, tool}; #[tool] async fn extract_text(image_path: String) -> String { // OCR processing ocr::extract(&image_path).await } let agent = Agent::new() .name("Reader") .tool(extract_text) .build()?; agent.chat("Read the text from screenshot.png").await?;
.png
.jpg
.jpeg
.pdf
.tiff