Extract text from images with Tesseract OCR; use it when you need to recognize text from PNG/JPEG/TIFF/BMP images, select a language model, or run OCR via natural-language requests (e.g., "Interpret the image at C:\path\image.png").
60
71%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./scientific-skills/Other/image-ocr/SKILL.mdeng, chi_sim).image_path.pytesseract.lang configuration option.scripts/ocr_config.json.pytesseract (version not specified)Pillow (version not specified)tesseract_cmd points to the executable)pip install pytesseract PillowInstall Tesseract OCR (system-level) and ensure it is accessible.
PATH, set tesseract_cmd to the full executable path in the config.Create or edit scripts/ocr_config.json:
{
"image_path": "C:\\Users\\xuw\\Desktop\\test_image.png",
"request": "",
"lang": "chi_sim",
"tesseract_cmd": "tesseract"
}{
"request": "Interpret the image at C:\\Users\\xuw\\Desktop\\test_image.png",
"lang": "chi_sim",
"tesseract_cmd": "tesseract"
}python scripts/image_ocr.pyConfiguration inputs
image_path: Explicit path to the image file to OCR.request: Natural-language instruction that includes an image path; when provided, the script extracts the path from this text and uses it as the OCR target.lang: Tesseract language model code (e.g., eng, chi_sim). This is passed to Tesseract to control recognition language.tesseract_cmd: The Tesseract executable name or full path; used to configure pytesseract to locate Tesseract.Execution flow (high level)
scripts/ocr_config.json.image_path if present and non-empty; otherwise parse the path from request.pytesseract with the configured lang.Language model requirement
lang must be installed in your local Tesseract language data; otherwise OCR may fail or fall back depending on your Tesseract setup.image_ocr_result.md unless the skill documentation defines a better convention.Run this minimal verification path before full execution when possible:
python scripts/image_ocr.py --helpExpected output format:
Result file: image_ocr_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if anyf5ef65b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.