Baidu OCR icon

Baidu OCR

使用百度智能云 OCR API 识别图片和文档中的文字

增值税发票识别

AI-generated

Summary

识别增值税发票中的关键字段

Inputs

  • inputType (required) — 数据源类型,'binaryData' 表示使用二进制图片数据,'url' 表示使用图片网络地址
  • binaryPropertyName — 包含图片或PDF的二进制属性名,支持多个属性名(用逗号分隔),默认 'data,data0,data1,data2,data3'
  • pdfPageRange — PDF 页码范围,默认 'all',仅在 inputType 为 binaryData 时生效
  • imageUrl — 图片的网络地址,当 inputType 为 url 时使用

Output shape

an array of result objects; each result's json contains text, results, fileCount, and processedProperties fields

Multiple results may be returned if several binary properties are provided; otherwise a single result is produced. The node always returns a JSON object per input item.

Examples

Example 1: 使用上游节点的二进制图片数据识别增值税发票

inputType: binaryData, binaryPropertyName: data, operation: vatInvoice

Example 2: 通过图片 URL 识别增值税发票

inputType: url, imageUrl: https://example.com/invoice.jpg, operation: vatInvoice

Example 3: 对多页 PDF 发票逐页识别

inputType: binaryData, binaryPropertyName: file, pdfPageRange: 1-5, operation: vatInvoice

Links

Discussion