Tencent Cloud General Invoice OCR Advanced Edition
Paste the following prompt into your AI chat to install this skill:
Please install @tencent-adm/tencentcloud-ocr-vatinvoice following https://skillhub.cn/install/skillhub.md.
About this skill
Problem Solved
In reimbursement, reconciliation, and tax archive workflows, VAT invoices often arrive as images, URLs, or PDFs. Manual entry of invoice codes, tax IDs, amounts, and line items is error-prone. This skill calls the Tencent Cloud advanced general invoice OCR API and converts invoice content into structured JSON, targeting special VAT invoices, general VAT invoices, electronic invoices, and fully digital invoices.
How It Works
- Input options: accepts
ImageBase64orImageUrl; provide at least one, withImageUrltaking precedence. SetIsPdf=trueto enablePDFrecognition. - Field coverage: extracts invoice code, invoice number, issue date, check code, buyer/seller names and tax IDs, bank details, amounts, tax amounts, total amount, issuer, reviewer, remarks, and more.
- Line-item structure: maps service or goods name, specification, unit, quantity, unit price, amount without tax, tax rate, tax amount, and tax classification code into
VatInvoiceItemfor bookkeeping and validation. - Fully digital invoice support: internally classifies the document first, then maps the result into consistent
TextVatInvoiceandVatInvoiceItemoutput. - Coordinate assistance: some fields include
Polygonpoints for locating values in the source image or supporting manual review.
Boundaries and Notes
- Encoded file size must be under
10M, and pixel size should be between20and10000. Supported formats includePNG,JPG,JPEG, andPDFwhen enabled;GIFis not supported. PdfPageNumberapplies only whenIsPdf=true, defaulting to page1.- The default request rate limit is
10requests/second, so batch jobs should be throttled. - Errors indicate service not enabled, arrears, exhausted resource packages, blur, or decode failures; storing files in Tencent Cloud COS can reduce download failures.
Use Cases
- Finance converts supplier VAT invoice images into amount, tax ID, buyer, seller, and invoice number fields for review before reimbursement entry.
- Operations extracts PDF invoice line items, unit price, tax rate, and total amount to check supplier statements for monthly reconciliation before payment.
- Engineering maps ImageUrl OCR results into order fields and validates invoice number, amount without tax, and tax for settlement records.
- Tax staff normalizes electronic invoices and fully digital invoices into TextVatInvoice and VatInvoiceItem outputs for archiving and monthly bookkeeping review.
Best For
- Finance staff who need invoice images converted into bookkeeping fields.
- Operations staff who need to verify supplier PDF line items against statements.
- Engineers who need OCR results written into order or accounting systems.
- Tax staff who need consistent fields from electronic and fully digital invoices.
Related Skills
Covers literature review, data analysis, visualization, drug discovery, paper writing, and grant writing workflows.
A retrieval assistant for Chinese laws and regulations, supporting semantic queries, validity checks, clause location, and regulation comparison with CLI-based output.
Run questionnaire-based tax risk scans that generate red/orange/yellow alerts with industry templates, policy references, remediation actions, and local trend tracking.
A contract review assistant for legal and business teams that extracts clauses, flags risks, compares versions, and generates opinion reports with a built-in legal knowledge base.