Doctr OCR

    by Felix

    1

    Extract text, tables, and formulas from scans and PDFs into Markdown or JSON using local deep-learning OCR.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Doctr OCR

    Example session with this skill installed

    OCR the scanned file 'invoice_77.jpg', extract the table data, and return it as a Markdown table. Include a confidence check for the text.

    • Read your context and instructions
    • Compiled the doctr ocr
    • Generated the data export

    I have processed 'invoice_77.jpg' using the docTR OCR pipeline with table detection enabled. The layout analysis identified one primary table and several key-value pairs.

    OCR Extraction Results: invoice_77.jpg

    DescriptionQuantityUnit PriceTotalConfidence
    Cloud Compute - Tier 1750$0.012$9.000.9842
    Storage - Standard120$0.05$6.000.9915
    Data Egress15$0.10$1.500.9768
    Grand Total$16.500.9989

    Extraction Summary

    • Average Confidence: 98.7%
    • Low-Confidence Words: 0 words found below 0.5 threshold.
    • Orientation: Page was detected as upright; no straightening required.

    Next steps

    • Import this data into your accounting system using the provided table structure.
    • If you have a folder of similar invoices, I can run this in batch mode to generate a combined CSV report.
    • For higher precision on the currency symbols, I can re-run the extraction with a specific character whitelist.

    invoice_77.jpg

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Extracting text and structured data from low-quality scans or photos shouldn't require a cloud API subscription. This skill provides a high-performance, local deep-learning OCR pipeline to turn image-based PDFs, receipts, and documents into structured Markdown, JSON, or pandas dataframes.

    What it does

    • Multi-stage OCR uses detection and recognition models to extract text from images and scanned PDFs.
    • Layout analysis identifies headers, footers, titles, and figures to preserve document structure.
    • Table extraction converts scanned tables directly into structured grids or pandas dataframes.
    • Formula detection recognizes LaTeX mathematical expressions within scientific papers or reports.
    • Orientation correction automatically straightens skewed, sideways, or upside-down pages for better accuracy.
    • Batch processing handles large folders and long documents using memory-efficient lazy loading.

    How it works

    1. Load documents using DocumentFile to handle mixed inputs like JPGs, PNGs, and PDFs.
    2. Configure predictor by selecting architectures like fast_base for speed or parseq for high accuracy.
    3. Execute OCR on the processed frames to generate a structured Document tree.
    4. Export results into the requested format, such as Markdown for LLMs or JSON for data pipelines.

    Frameworks & tools

    Built on python-doctr using the PyTorch backend. Integrates with pypdfium2 for PDF rendering, pandas for table management, and matplotlib for visualization.

    Why this beats prompting it yourself

    Writing reliable OCR glue code involves complex coordinate math, batching logic, and model configuration that defaults to random weights if missed. This skill handles the specific pretrained=True requirements, memory-efficient streaming, and reading-order reconstruction that raw prompting often gets wrong.

    Use cases

    • Building RAG pipelines by converting image-only PDFs into clean Markdown.
    • Extracting line items and totals from scanned invoices into a structured database.
    • Digitizing scientific papers while preserving LaTeX formulas and layout regions.
    • Automating high-volume document triage with local, GPU-accelerated processing.

    Known limitations

    Pretrained models target printed text and struggle with handwriting. The default vocabulary is optimized for English and French, lacking support for non-Latin scripts or certain extended Latin characters.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    Unlike cloud-based services, Doctr OCR runs entirely on your local infrastructure using PyTorch, ensuring your sensitive documents never leave your environment while avoiding recurring API costs. It also handles complex layout analysis, such as tables and LaTeX formulas, which basic OCR tools often ignore.

    The skill is optimized for printed text in English and French; it currently does not support handwriting recognition or non-Latin scripts like Cyrillic, Arabic, or Kanji. Performance is best on documents with standard layouts, though it includes orientation correction for skewed scans.

    Yes, the skill is designed to export data in formats like Markdown and JSON that are natively understood by Large Language Models. This makes it an ideal preprocessing tool for RAG (Retrieval-Augmented Generation) pipelines where image-based PDFs need to be converted into searchable, structured text.

    You will receive the complete Python-based skill package, including the pre-configured OCR pipeline, integration logic for PyTorch, and documentation on how to export results into various data formats. The purchase includes the logic needed to handle batch processing and layout reconstruction out of the box.

    This skill is built for Python environments using the PyTorch backend and is compatible with any AI agent framework that supports Python execution. It requires `python-doctr` and `pypdfium2`, and can be easily integrated into custom agentic workflows or automated data pipelines.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.