FastOCR for Openclaw

A high-performance, offline OCR tool for structured data extraction from invoices, travel tickets, and medical receipts.

gaojiren
v1.0.2
Mar 13, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install fast-ocr

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install fast-ocr using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is FastOCR?

FastOCR is a professional-grade optical character recognition tool designed specifically for the structured extraction of data from various financial and travel documents. Built on the ONNX inference engine, it offers a lightweight and fast solution that operates entirely offline, ensuring maximum data privacy for sensitive financial information within the library of Openclaw Skills.

This skill excels at identifying complex layouts, from standard VAT invoices to high-speed rail tickets, converting visual data into actionable JSON objects. By eliminating the need for heavy deep learning frameworks, it provides developers and AI agents with a robust tool for automating accounting, travel management, and general text recognition tasks without sending data to external servers.

FastOCR Use Cases

  • Automated financial reimbursement and expense report entry for accounting teams.
  • Batch processing of corporate receipts to export data into Excel or CSV formats.
  • Travel itinerary tracking and expense calculation via train and flight ticket analysis.
  • Medical insurance claim processing through structured medical invoice extraction.
  • General productivity workflows like extracting text from screenshots or digitized paper documents.

How FastOCR Works

  1. The user provides an image path or a directory containing receipts to the AI agent.
  2. FastOCR identifies the document type, such as a VAT invoice, train ticket, or taxi receipt.
  3. The local ONNX inference engine processes the image to perform high-precision character recognition.
  4. The system automatically maps recognized text into a structured schema with over 30 specific metadata fields.
  5. The skill returns a structured JSON object containing the extracted data and confidence scores.

FastOCR Setup

To use this tool within Openclaw Skills, you must first install the required ONNX runtime:

pip install rapidocr-onnxruntime

For users requiring faster performance on large batches, GPU acceleration can be enabled:

pip install onnxruntime-gpu

FastOCR Data Schema & Taxonomy

FastOCR organizes extracted data into specialized JSON structures based on the document type. Below is the primary schema taxonomy:

Data Group Included Fields
Basic Info Invoice code, number, date, check code, and document type
Parties Buyer/Seller names, Tax IDs, addresses, phone numbers, and bank details
Financials Pre-tax amount, tax rate, tax amount, and total amount with tax
Travel Specifics Train/flight numbers, seat class, carriage, and departure/arrival stations
General OCR Full text string, individual lines, and recognition confidence levels

FastOCR Advanced Features

  • Support for 100% offline operation to maintain strict data privacy and security standards.
  • High-speed inference engine delivering results in approximately 300-500ms per document.
  • Batch processing mode for handling entire directories of images in a single command.
  • Configurable confidence thresholds to flag low-quality scans for human review.
  • Cross-platform support for Windows, macOS, and Linux environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*