ifly-ocr-invoice

Extract structured invoice data from images and PDFs via the iFlytek OCR API.

217|27|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/iflytek/iFly-Skills --skill ifly-ocr-invoice
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ifly-ocr-invoice
Source: https://github.com/iflytek/iFly-Skills/tree/main/ifly-ocr-invoice
Command: npx skills add https://github.com/iflytek/iFly-Skills --skill ifly-ocr-invoice

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manual processing of invoices and receipts is slow and error-prone; this skill automates extracting structured data.

Core Features & Use Cases

  • OCR-based extraction of structured fields from invoices, receipts, and bills across VAT invoices, taxi receipts, train tickets, medical bills, and bank statements.
  • Output can be human-readable or raw API JSON, enabling easy integration into expense workflows and accounting processes.
  • Script-based tooling located at scripts/invoice.py provides a reproducible workflow with environment-based authentication.

Quick Start

Run the OCR script on an invoice image after setting XFYUN_APP_ID, XFYUN_API_KEY, and XFYUN_API_SECRET in your environment.

Frequently Asked Questions about ifly-ocr-invoice

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

FAQPage Schema
How do I extract structured data from invoices using OCR?

OCR extracts structured invoice data from images and PDFs by posting a signed request to the iFlytek API endpoint. It automates data entry for expense reporting by identifying fields across various receipts.

What types of receipts does OCR data extraction support for expense reporting?

OCR data extraction supports VAT invoices, taxi receipts, train tickets, medical bills, and bank receipts. It parses these documents to output human-readable text or raw API JSON for expense workflows.

Do I need Python to automate invoice data extraction from PDFs?

Yes, you need Python 3 to automate invoice data extraction. You must set the XFYUN_APP_ID, XFYUN_API_KEY, and XFYUN_API_SECRET environment variables before running the script.

How do I set up API credentials for receipt OCR processing?

To set up API credentials for receipt OCR processing, configure XFYUN_APP_ID, XFYUN_API_KEY, and XFYUN_API_SECRET as environment variables. Run scripts/invoice.py to authenticate and send requests.

Can I integrate raw JSON output from invoice OCR into accounting processes?

Yes, you can integrate raw API JSON output into accounting processes. The OCR script outputs structured data from invoices and bills, enabling easy integration into expense workflows and record-keeping.

What is the best way to automate expense reporting from mixed receipts?

The best way to automate expense reporting from mixed receipts is using an OCR script to extract structured fields. It handles VAT invoices, taxi receipts, and medical bills, outputting standardized data.