Baidu OCR icon

Baidu OCR

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

定额发票识别

AI-generated

Summary

Identify quota invoice information from binary image data or image URL.

Inputs

  • inputType — Data source: 'binaryData' for upstream binary payload or 'url' for an image address.
  • binaryPropertyName — Comma‑separated attribute names that hold binary payloads.
  • pdfPageRange — PDF page range to process; ignored for images.
  • imageUrl — Image URL when inputType is 'url'.

Output shape

an array of items, each returning a JSON object with OCR text and result metadata

The JSON contains 'text', 'results', 'fileCount' and 'processedProperties'; fields may be missing depending on input type and configuration.

Examples

Example 1: Extract quota invoice from a PDF attached to a record

inputType = binaryData, binaryPropertyName = default, pdfPageRange = all

Example 2: Process an online invoice image

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

Example 3: Handle multiple binary attachments in one item

binaryPropertyName = data,file,images (custom), pdfPageRange = 1-3

Links

Discussion