Baidu OCR icon

Baidu OCR

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

行驶证识别

AI-generated

Summary

Identify vehicle license plate text from a binary image or URL, supporting front or back side selection.

Inputs

  • inputType (required) — How the image is provided: binary data from upstream node or a URL.
  • binaryPropertyName — Comma‑separated list of binary property names to locate image data; defaults to all common names.
  • pdfPageRange — Page range of a PDF to process; defaults to 'all'.
  • imageUrl — Network URL of the image when inputType is 'url'.
  • vehicleLicenseSide — Selects the front or back side of the vehicle license to recognize.

Output shape

array of OCR result objects

Each result contains extracted text and any structured fields; when binary data includes multiple properties, results are aggregated per property; URL inputs return a single result object.

Examples

Example 1: Process binary image data from a previous node to read the front side of a vehicle license.

inputType = binaryData, binaryPropertyName = data, vehicleLicenseSide = front

Example 2: Recognize a license plate from a public image URL.

inputType = url, imageUrl = https://example.com/license.jpg, vehicleLicenseSide = front

Example 3: OCR a multi‑page PDF of a registration, extracting pages 2‑4 only.

inputType = binaryData, binaryPropertyName = data, pdfPageRange = 2-4, vehicleLicenseSide = front

Links

Discussion