| name | tesseract-ocr |
| description | Extract text from images using the Tesseract OCR engine directly via command line.
Supports multiple languages including Chinese, English, and more. Use this skill
when users need to extract text from images, recognize text content in images,
or perform OCR tasks without Python dependencies.
|
Tesseract OCR Skill
Extract text content from images using the Tesseract engine directly via command line.
Features
- Extract text from image files using native tesseract CLI
- Support multi-language recognition (Chinese, English, etc.)
- No Python dependencies required
- Simple and fast
Dependencies
Install Tesseract OCR system package:
sudo apt-get install tesseract-ocr tesseract-ocr-chi-sim
brew install tesseract tesseract-lang
Usage
Basic Usage
tesseract /path/to/image.png stdout
tesseract /path/to/image.png stdout -l chi_sim+eng
tesseract /path/to/image.png output.txt -l chi_sim+eng
tesseract /path/to/image.png stdout -l chi_sim+eng+jpn
Common Language Codes
| Language | Code |
|---|
| Simplified Chinese | chi_sim |
| Traditional Chinese | chi_tra |
| English | eng |
| Japanese | jpn |
| Korean | kor |
| Chinese + English | chi_sim+eng |
Quick Examples
tesseract image.jpg stdout -l chi_sim
tesseract image.png stdout -l chi_sim+eng
tesseract document.png result -l chi_sim+eng
Notes
- OCR accuracy depends on image quality; use clear images for best results
- Complex layouts (tables, multi-column) may require post-processing
- Chinese recognition requires the tesseract-ocr-chi-sim language pack
- Language packs must be installed separately on your system