kdeps-tools-ocr_image
v1.1.0Extract text from an image via tesseract OCR. Runs entirely locally -- no API key required. Supports png, jpg/jpeg, tiff, bmp, gif. Requires: file (absolute path to the image). Optional: language (tesseract -l value, e.g. 'eng' or 'eng+fra'; default 'eng'). Does not support PDF -- use load_document with type pdf for text-layer PDFs.
Install
A kdeps asset: kdeps installs it on first run and updates it without a new release.
Pin a version with kdeps update tools/ocr_image@<version>.
Contents
Extract text from an image via tesseract OCR. Runs entirely locally -- no API key required. Supports png, jpg/jpeg, tiff, bmp, gif. Requires: file (absolute path to the image). Optional: language (tesseract -l value, e.g. 'eng' or 'eng+fra'; default 'eng'). Does not support PDF -- use load_document with type pdf for text-layer PDFs.
| Parameter | Type | Description |
|---|---|---|
| file * | string | Absolute path to the image to extract text from |
| language | string | tesseract -l value, e.g. 'eng' or 'eng+fra'. Default: engdefault: eng |
exec:
command: tesseract
install: tesseract-ocr
paths:
- file
args:
- "{{.args.file}}"
- stdout
- -l
- "{{.args.language}}"
version: 1.1.0
description: 'Extract text from an image via tesseract OCR. Runs entirely locally -- no API key required. Supports png, jpg/jpeg, tiff, bmp, gif. Requires: file (absolute path to the image). Optional: language (tesseract -l value, e.g. ''eng'' or ''eng+fra''; default ''eng''). Does not support PDF -- use load_document with type pdf for text-layer PDFs.'
parameters:
file:
type: string
description: Absolute path to the image to extract text from
required: true
language:
type: string
description: 'tesseract -l value, e.g. ''eng'' or ''eng+fra''. Default: eng'
default: eng
exec:
command: tesseract
install: tesseract-ocr
paths: [file] # checked against the workspace boundary
args:
- "{{.args.file}}"
- stdout # tesseract writes the text to stdout
- "-l"
- "{{.args.language}}"
Versions
| Version | Published | Status |
|---|---|---|
| 1.1.0 | 10/13/2026 | active |
| 1.0.0 | 10/11/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.1.0
- Published
- 10/11/2026