护照识别
AI-generatedSummary
Extract passport information from an image or PDF using Baidu OCR.
Inputs
- inputType (required) — 输入类型,使用上游节点传入的二进制图片数据或图片URL
- binaryPropertyName — 包含图片或PDF的二进制属性名,支持多个属性名(用逗号分隔),节点会自动检测文件格式
- pdfPageRange — PDF页码范围:all=全部页面,1=第1页,1-5=第1到5页,1,3,5=第1、3、5页。图片文件会忽略此设置
- imageUrl — 要识别的图片网络地址
Output shape
an array of result entries; each entry has a json field containing the OCR result (text, structured fields, page info, etc.)
The array may be empty, may include error objects if continueOnFail is enabled, and each entry may contain a
pairedItemmetadata field.
Examples
Example 1: Extract data from an uploaded passport scan
inputType = binaryData, binaryPropertyName = data, pdfPageRange = all, operation = passport
Example 2: Identify a passport from a web URL
inputType = url, imageUrl = https://example.com/passport.jpg, operation = passport
Example 3: Process a multi-page passport PDF
inputType = binaryData, binaryPropertyName = data, pdfPageRange = 1-3, operation = passport