ocr_image
Extract text from local images and save it to a file using Dharmamitra OCR. Supports Tibetan, Sanskrit, and Devanagari scripts with optional transliteration.
Instructions
Run Dharmamitra OCR on an image and save extracted text to a file.
Args: image_path: Absolute path to a local image file (png/jpg/…). output_path: File path where the extracted text will be written (UTF-8). transliterate_devanagari_to_iast: Pass-through flag for the API. transliterate_tibetan_to_wylie: Pass-through flag for the API. instruction: Optional instruction string for the OCR model. model: OCR model id ("auto" by default). poll_interval_seconds: Delay between status polls. timeout_seconds: Overall polling timeout.
Returns a summary with job_id, output_path, pages, processing time and char count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | auto | |
| image_path | Yes | ||
| instruction | No | ||
| output_path | Yes | ||
| timeout_seconds | No | ||
| poll_interval_seconds | No | ||
| transliterate_tibetan_to_wylie | No | ||
| transliterate_devanagari_to_iast | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||