Skip to content
Back to skills

Zo Extract Text From Image

ASecurity

Extract text from images, scanned documents, and PDFs using OCR

  • 11 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 10, 2026
toolsgobash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add luokai0/ai-agent-skills-by-luo-kai --skill zo-extract-text-from-image --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Zo Extract Text From Image?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Zo Extract Text From Image
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/luokai0-zo-extract-text-from-image/badge)](https://www.skillsdirectory.com/skills/luokai0-zo-extract-text-from-image)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: extract-text-from-image
description: Extract text from images, scanned documents, and PDFs using OCR
metadata:
  author: Zo
  category: Official
  display-name: Extract Text from Images (OCR)
  emoji: πŸ”
---

# 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

1. Install Tesseract and required packages:

```bash
apt-get update && apt-get install -y tesseract-ocr imagemagick ghostscript
```

2. Extract text based on the file type:

```bash
# 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
```

3. 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.

Files in this skill

  • DISPLAY.json65 B
  • SKILL.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.