detect_text_regions
Detect text regions in images using OCR. Returns each region's text, bounding box, and confidence score for extracting brand titles, dosage tables, or ingredients lists.
Instructions
Detect text regions in an image using Tesseract OCR. Returns each region with its text content, pixel bounding box, and confidence score. Use this to find the coordinates of brand titles, dosage tables, ingredients lists, etc. Supports multiple languages (e.g. eng+rus) and various preprocessing modes for photos vs. clean scans. Set filter_garbage=false to keep OCR-noise regions, or crop_regions=true to also save per-region image crops that a vision model can re-recognize (useful when tesseract quality is low).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| psm | No | ||
| lang | No | eng | |
| path | Yes | ||
| detail | No | word | |
| preprocess | No | clahe | |
| crop_padding | No | ||
| crop_regions | No | ||
| filter_garbage | No | ||
| min_confidence | No | ||
| crop_output_dir | No |