跳到正文
TakoAPI
返回技能列表

azure-doc-ocr

由 li-hongmin 提供

DevOps & Cloud
349下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Extract text and structured data from documents using Azure Document Intelligence (formerly Form Recognizer).

描述

该技能的功能

Extracts text and structured data from documents using Azure Document Intelligence REST API v4.0. Supports PDFs, images, scanned documents, handwritten text, CJK languages, tables, forms, invoices, receipts, ID documents, and tax forms via prebuilt models.

Prebuilt models for invoices, receipts, IDs, and tax forms return structured fields directly without needing custom model training.

何时使用

  • Extract line items and totals from invoice PDFs
  • Batch OCR a folder of scanned contracts
  • Parse ID documents or passports for identity fields
  • Pull table data from structured reports into markdown
  • Recognize handwritten notes in mixed-language documents

示例工作流

输入

User asks: extract structured data from invoice.pdf

智能体
  1. 1

    Set AZURE_DOC_INTEL_ENDPOINT and AZURE_DOC_INTEL_KEY environment variables

  2. 2

    Run ocr_extract.py with --model prebuilt-invoice and --format json

  3. 3

    API submits document to Azure Document Intelligence REST endpoint

  4. 4

    Poll for analysis result and receive structured JSON response

  5. 5

    Write output to invoice_data.json

输出

JSON file containing vendor info, line items, totals, and dates extracted from the invoice

前置要求

  • AZURE_DOC_INTEL_ENDPOINT environment variable
  • AZURE_DOC_INTEL_KEY environment variable
  • Azure account with Document Intelligence resource

安装

clawhub install li-hongmin/azure-doc-ocr

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接