Baidu OCR icon

Baidu OCR

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

车牌号识别

AI-generated

Summary

Recognizes vehicle license plates from binary image data or image URLs using Baidu OCR.

Inputs

  • inputType — Type of input data: binary image data or URL.
  • binaryPropertyName — Comma-separated list of binary property names that may contain the image or PDF data.
  • pdfPageRange — Range of PDF pages to process (e.g., 'all', '1', '1-5', '1,3,5'). Ignored for images.
  • imageUrl — URL of the image to process when inputType is set to 'url'.

Output shape

Array of result items, each with a json field containing OCR output (text, fileCount, processedProperties, etc.)

When using binary input multiple properties may yield separate results; URL input returns a single result. Errors propagate if continueOnFail is false.

Examples

Example 1: Process a binary image from a previous node and return plate numbers.

inputType = binaryData, binaryPropertyName = data, pdfPageRange = all

Example 2: Extract plate numbers from a public image URL.

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

Example 3: Handle a PDF containing multiple license plates.

inputType = binaryData, binaryPropertyName = data, pdfPageRange = 1-3

Links

Discussion