图片文字识别工具,基于Tesseract OCR。当用户提到:图片识别、OCR、文字提取、图片转文字、识别图片里的文字时使用。
img-ocr
Image text recognition tool based on Tesseract OCR.
Dependencies
- Python3
- pytesseract:
pip3 install pytesseract - Pillow:
pip3 install Pillow - Tesseract OCR:
sudo apt install tesseract-ocr - Chinese lang pack:
sudo apt install tesseract-ocr-chi-sim
Quick Usage
python3 skills/img-ocr/scripts/ocr.py /path/to/image.jpg
Typical Scenarios
# Recognize Chinese + English
python3 skills/img-ocr/scripts/ocr.py screenshot.png
# Extract text from screenshot
python3 skills/img-ocr/scripts/ocr.py /path/to/screenshot.jpg
Related skills
- Downloads
- 967All time
- Security audit
- Pass
- Last updated
- 6mo ago
- Current version
- v1.0.1
- License
- MIT-0
