paddleocr-text-recognition

Extract text and location data from images and PDFs via the PaddleOCR API.

87.3k|11.2k|Updated May 8, 2020
One-click install
npx skills add https://github.com/PaddlePaddle/PaddleOCR --skill paddleocr-text-recognition
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paddleocr-text-recognition
Source: https://github.com/PaddlePaddle/PaddleOCR/tree/main/skills/paddleocr-text-recognition
Command: npx skills add https://github.com/PaddlePaddle/PaddleOCR --skill paddleocr-text-recognition

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of extracting text from images and PDF documents, eliminating the need for manual transcription or manual OCR operations.

Core Features & Use Cases

  • Image-to-Text Extraction: Recognize and extract text from various image formats (JPG, PNG, etc.).
  • PDF Text Extraction: Extract text content from PDF files.
  • Structured Document Processing: Useful for invoices, receipts, forms, and tables where text and its location are important.
  • URL Input: Can process images or PDFs directly from a web URL.

Quick Start

Use the paddleocr-text-recognition skill to extract text from the image located at the URL 'https://example.com/invoice.jpg'.

Frequently Asked Questions about paddleocr-text-recognition

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from an image or PDF using PaddleOCR?

To extract text from images or PDFs, this Skill sends local file paths or URLs to the PaddleOCR API. It returns recognized text and location data, and you can customize the output or stream it directly to stdout.

Can I process a PDF file directly from a web URL?

Yes, you can process PDF documents and images directly from a web URL. The Skill accepts web URLs as input, fetches the remote file, and extracts the text content automatically via the PaddleOCR API.

Do I need an API key to use PaddleOCR for text recognition?

Yes, text recognition requires authentication. You must set the environment variables PADDLEOCR_OCR_API_URL and PADDLEOCR_ACCESS_TOKEN to authenticate your requests and operate the extraction process.

Does PaddleOCR preserve the location data of text in structured documents?

Yes, PaddleOCR preserves text location data. This makes it suitable for structured document processing like invoices, receipts, forms, and tables where the spatial position of the extracted text is important.

What Python dependencies are required for image to text extraction?

The required dependency for image to text extraction is the httpx library. This Python package handles the HTTP requests needed to communicate with the PaddleOCR API for processing your files.

How does PaddleOCR handle direct stdout streaming for extracted text?

PaddleOCR provides options for output customization and direct stdout streaming. This allows you to pipe the extracted text and location data directly into other command-line tools or scripts without intermediate files.