Img Ocr

Other

图片文字识别工具,基于Tesseract OCR。当用户提到:图片识别、OCR、文字提取、图片转文字、识别图片里的文字时使用。

Install

openclaw skills install img-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