Baidu OCR icon

Baidu OCR

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

表格文字识别

AI-generated

Summary

Performs table OCR on provided images or PDFs to extract tabular text and structure.

Inputs

  • inputType — How the image data is supplied: 'binaryData' for binary payloads from previous nodes, or 'url' for a public image URL.
  • binaryPropertyName — Comma‑separated list of binary attributes that may contain image or PDF data; the node auto‑detects which one holds the file.
  • pdfPageRange — Range of PDF pages to process (e.g., 'all', '1', '1-5', '1,3,5'); ignored for image inputs.
  • imageUrl — Direct URL to an image when inputType is 'url'.

Output shape

An array where each element has a 'json' property containing the OCR result object with fields 'text', 'results', 'fileCount' and 'processedProperties'.

If an input fails and continueOnFail is disabled, the error propagates; otherwise a partial error object is returned within the json.

Examples

Example 1: Extract tables from a multi‑page PDF uploaded via a preceding Set binary data node.

operation=表格文字识别; inputType=binaryData; binaryPropertyName=data; pdfPageRange=1-5

Example 2: Process a remote image URL directly.

operation=表格文字识别; inputType=url; imageUrl=https://example.com/table.png

Example 3: Handle multiple binary fields and process all detected pages.

operation=表格文字识别; inputType=binaryData; binaryPropertyName=data,doc; pdfPageRange=all

Links

Discussion