extract-text-from-image
Extract text from images, scanned documents, and PDFs using OCR
- License 许可
- MIT
- 最近更新
- 2026-09-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- extract-text-from-image
- metadata
- { "emoji": "🔍", "author": "Zo", "category": "Official", "display-name": "Extract Text from Images (OCR)" }
- description
- Extract text from images, scanned documents, and PDFs using OCR
02 资源文件 1
- 参考文档DISPLAY.json65 B
03 SKILL.md 正文
Extract Text from Images (OCR)
Purpose
Extract text from images, scanned documents, screenshots, and image-based PDFs using Tesseract OCR.
Input
- Path to the image or PDF file containing text you want to extract
Steps
- Install Tesseract and required packages:
apt-get update && apt-get install -y tesseract-ocr imagemagick ghostscript
- Extract text based on the file type:
# For image files (PNG, JPG, TIFF, etc.)
tesseract "<user's_image_path>" output.txt
cat output.txt
# For better accuracy with preprocessing
convert "<user's_image_path>" -resize 150% -type Grayscale -sharpen 0x1 enhanced.png
tesseract enhanced.png output.txt
cat output.txt
# For PDF files (converts to images first)
convert -density 300 "<user's_pdf_path>" -depth 8 -strip -background white -alpha off page_%d.png
for img in page_*.png; do tesseract "$img" "$img.txt"; done
cat page_*.png.txt > combined_output.txt
cat combined_output.txt
# For multi-language text (install language packs as needed)
apt-get install -y tesseract-ocr-fra tesseract-ocr-deu tesseract-ocr-spa
tesseract "<user's_image_path>" output.txt -l eng+fra+deu+spa
- Save the extracted text to a file and tell the user where it was saved.
Note
OCR accuracy depends on image quality. Best results come from high-resolution scans with clear, dark text on light backgrounds. The preprocessing step can help with lower quality images.
04 同仓库更多 Skills
zopack
Export and import zo.space route setups as shareable .zopack.md files. Use when the user wants to package their zo.space routes for sharing, or when they receive a .zopack.md file to deploy. Triggers on "export my zo.space", "create a zopack", "import this zopack", or any mention of .zopack.md files.
zoho-mail-inbox
Full inbox management for Zoho Mail (info@justlegalsolutions.org) — list unread, mark all as read, delete by sender/keyword, search, send from aliases, list folders. Fully self-contained — zero setup needed.
weekly-meeting-reminder
Get an email every Sunday evening listing your meetings for the coming week.
Let Zo use your X (Twitter) account
zo-tools
Internal process tools for Zo and Hermes — local search, document processing, OCR, and embeddings. All services run on localhost, zero HTTP slots consumed.
ssh-setup
Sets up secure remote access to your Zo Computer so you can connect from anywhere