License Plate MMC Platerecognizer

High accuracy license plate + make/model/color recognition using your own Platerecognizer Snapshot API key or on-prem instance. Operates on plates previously detected using the License Plate Detection model.

Overview

This node uses Platerecognizer's Snapshot API to read license plates from vehicles that are detected using the Vehicle & License Plate models.

This node requires AI Model Node (Vehicle Detection model) -> Model Inference Node (License Plate model) -> Track Objects Node prior to it in order to function properly using the "LPR & Make/Model/Color" recognition mode.

Inputs & Outputs

  • Inputs : 1, Media Format : Raw Video
  • Outputs : 1, Media Format: Raw Video
  • Output Metadata: license-plate results, counts, and entered/exited deltas under nodes.<node_id>, plus associated object attributes.

Properties

PropertyDescriptionTypeDefaultRequired
pr_modeSpecify which platerecognizer api to use. Options: Snapshot cloud (snapshot_cloud): API hosted by Platerecognizer; Snapshot On-premise (snapshot_onprem): API hosted by you using Platerecognizer docker SDK.enumsnapshot_cloudNo
pr_api_keySnapshot API token from here. Conditional on pr_mode being snapshot_cloud.stringnullYes
pr_hostBase URL for your Platerecognizer On-premise installation. See here for instructions. Conditional on pr_mode being snapshot_onprem.stringhttp://localhost:8080Yes
geographiesGeographies to consider for license plate recognition. Leave blank to consider all. Region codes are available here.stringusNo
objects_to_trackex. car, vehicle, truck. Classes to consider on the node. Leave blank to consider all.model-labelscar,vehicle,truckNo
display_infoDisplay LPR info on video?booltrueNo
recognition_modeAttempt recognition until the above info is found. Options: LPR & Make/Model/Color (lpr_mmc); LPR Only (lpr_only); Make/Model/Color Only (mmc_only).enumlpr_mmcNo
requests_bufferTime that the object must be present before the initial LPR request and between subsequent retries. Unit: seconds.float1.0Yes
presence_bufferTime during which objects that leave and re-enter the scene will be ignored. Increase to reduce duplicate alerts for a given object. Unit: seconds.float5.0Yes
min_dimsDon't lookup objects smaller than this size. Unit: pixels.number20No
max_attemptsOnly attempt to lookup an object these many times before giving up.number5No

Output Metadata

The fields below are declared by this node's metadata schema; the JSON values are representative examples.

PathTypeDescription
nodes.<node_id>.license_plates_entered_deltaintegerNumber of new license plates detected since last frame
nodes.<node_id>.license_plates_exited_deltaintegerNumber of license plates that left since last frame
nodes.<node_id>.license_plates_countintegerTotal number of license plates in the view right now
nodes.<node_id>.license_plates.<object_id>.plate.typestringRecognition result category for the plate.
nodes.<node_id>.license_plates.<object_id>.plate.scorenumberOverall plate-recognition confidence.
nodes.<node_id>.license_plates.<object_id>.plate.props.plate[].valuestringRecognized plate text.
nodes.<node_id>.license_plates.<object_id>.plate.props.plate[].scorenumberConfidence of this plate-text candidate.
nodes.<node_id>.license_plates.<object_id>.plate.props.region[].valuestringRecognized plate region.
nodes.<node_id>.license_plates.<object_id>.plate.props.region[].scorenumberConfidence of this region candidate.
nodes.<node_id>.license_plates.<object_id>.vehicle.typestringRecognized vehicle type.
nodes.<node_id>.license_plates.<object_id>.vehicle.scorenumberOverall vehicle-recognition confidence.
nodes.<node_id>.license_plates.<object_id>.vehicle.props.make_model[].makestringRecognized vehicle make.
nodes.<node_id>.license_plates.<object_id>.vehicle.props.make_model[].modelstringRecognized vehicle model.
nodes.<node_id>.license_plates.<object_id>.vehicle.props.make_model[].scorenumberConfidence of this make/model candidate.
nodes.<node_id>.license_plates.<object_id>.vehicle.props.orientation[].valuestringRecognized vehicle orientation.
nodes.<node_id>.license_plates.<object_id>.vehicle.props.orientation[].scorenumberConfidence of this orientation candidate.
nodes.<node_id>.license_plates.<object_id>.vehicle.props.color[].valuestringRecognized vehicle color.
nodes.<node_id>.license_plates.<object_id>.vehicle.props.color[].scorenumberConfidence of this color candidate.
nodes.<node_id>.errorstringMost recent processing or recognition error, if any.
nodes.<node_id>.typestringIdentifies the node type that produced this metadata.

JSON example

{
  "nodes": {
    "lpr_platerecognizer1": {
      "error": "value",
      "license_plates": {
        "object_id": {
          "plate": {
            "props": {
              "plate": [
                {
                  "score": 0.0,
                  "value": "value"
                }
              ],
              "region": [
                {
                  "score": 0.0,
                  "value": "value"
                }
              ]
            },
            "score": 0.0,
            "type": "value"
          },
          "vehicle": {
            "props": {
              "color": [
                {
                  "score": 0.0,
                  "value": "value"
                }
              ],
              "make_model": [
                {
                  "make": "value",
                  "model": "value",
                  "score": 0.0
                }
              ],
              "orientation": [
                {
                  "score": 0.0,
                  "value": "value"
                }
              ]
            },
            "score": 0.0,
            "type": "value"
          }
        }
      },
      "license_plates_count": 0,
      "license_plates_entered_delta": 0,
      "license_plates_exited_delta": 0,
      "type": "lpr_platerecognizer"
    }
  }
}

Object labels and attributes

  • Object labels/classes added: None.
  • Object attribute labels/classes added: Recognized plate text (10500), vehicle make (10501), model (10502), color (10503), and region (10504).

The following information is added to the detected object's "attributes" array:

"class_id" field"label" field"probability" field
10500The recognized license plate (string)LP recognition confidence
10501Vehicle's makeLP recognition confidence
10502Vehicle's modelLP recognition confidence
10503Vehicle's colorLP recognition confidence
10504Plate regionLP recognition confidence

Did this page help you?