跳到正文
TakoAPI
返回技能列表

ocr-python

由 roamerxv 提供

Image & Video Generation
—暂无评分
你的评分

简介

Optical Character Recognition (OCR) tool, supports Chinese and English text extraction from PDFs and images.

描述

该技能的功能

OCR tool built on PaddleOCR that extracts text from images and PDFs. Supports Chinese and English, including mixed-language documents. Returns recognized text alongside per-line confidence scores.

PaddleOCR handles Chinese-English mixed content reliably, which most OCR libraries do not support without extra configuration.

何时使用

  • Extract text from scanned invoice PDFs
  • Recognize printed text in product photos
  • Convert scanned contracts to editable text
  • Pull text from screenshots for data pipelines
  • Digitize multi-page printed forms

示例工作流

输入

User asks: Extract all text from a scanned multi-page invoice PDF

智能体
  1. 1

    Load the PDF using PyMuPDF and render each page as an image

  2. 2

    Initialize PaddleOCR with Chinese-English language support

  3. 3

    Run OCR prediction on each page image

  4. 4

    Collect rec_texts and rec_scores from each page result

  5. 5

    Return combined text with confidence scores per line

输出

JSON list of recognized text strings with confidence scores for each detected line

安装

clawhub install roamerxv/ocr-python

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接