Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

tesseract-ocr

bởi whalefell

Image & Video Generation
2.3kLượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Extract text from images using the Tesseract OCR engine directly via command line.

Mô tả

Kỹ năng này làm gì

Extracts text from images using the Tesseract OCR engine via command line. Supports English, Chinese, Japanese, Korean, and other languages through installable language packs. No Python or additional runtime dependencies beyond the tesseract binary.

Runs directly from the command line without Python or additional runtimes, making it easy to drop into shell scripts and CI pipelines.

Khi nào nên dùng

  • Extracting text from scanned receipts or invoices
  • Reading text content from screenshots
  • Processing documents with mixed Chinese and English
  • Automating text extraction in shell scripts
  • Converting image-based content to plain text files

Quy trình ví dụ

ĐẦU VÀO

User asks: Extract all text from document.png, which contains mixed Chinese and English

AGENT
  1. 1

    Identify the image path and required language codes

  2. 2

    Run tesseract document.png stdout -l chi_sim+eng

  3. 3

    Capture the text output from stdout

  4. 4

    Return the extracted text to the user

ĐẦU RA

Plain text with both Chinese and English content recognized from the image

Yêu cầu

  • tesseract-ocr system package (brew install tesseract on macOS, apt-get install tesseract-ocr on Ubuntu/Debian)
  • Language pack for each non-English language needed (e.g., tesseract-ocr-chi-sim for Simplified Chinese, brew install tesseract-lang on macOS)

Cài đặt

clawhub install whalefell/tesseract-ocr

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết