Examples of JSON and XML ALPR events for the SharpZ3 HTTP extension - SharpZ3 | SharpOS 13.4

AutoVu™ SharpZ3 Administrator Guide 13.4

Applies to
SharpZ3 | SharpOS 13.4
Last updated
2023-01-24
Content type
Guides > Administrator guides
Language
English
Product
SharpOS
SharpZ3
Version
13.4

When you send ALPR data to an HTTP server, you can configure the SharpZ3 system to send the data in XML or JSON format.

JSON format sample:

The following is an example of a license plate read event in JSON format.
NOTE: The binary image data has been removed from the example.

{ "ContextCameraName" : "Context Camera",
  "ContextImage" : "",
  "Id" : "32cf870a-46aa-4cfd-914b-00062d98e93a",
  "Latitude" : 0.0,
  "Longitude" : 0.0,
  "LprCameraName" : "LPR camera",
  "PlateAnalytics" : [ { "Key" : "State Name",
        "Score" : -1.0,
        "Value" : "-"
      },
      { "Key" : "Vehicle Type",
        "Score" : 1.0,
        "Value" : "-"
      },
      { "Key" : "Relative Motion",
        "Score" : -1.0,
        "Value" : "-"
      },
      { "Key" : "Context",
        "Score" : 1.0,
        "Value" : "US"
      },
      { "Key" : "Characters Height",
        "Score" : 1.0,
        "Value" : "70"
      }
    ],
  "PlateImage" : "",
  "PlateRead" : "AA7D2",
  "SourceUrl" : "SharpZ312345",
  "Timestamp" : "2020-03-12T08:42:45.797"
}

XML format sample:

The following is an example of a license plate read event in XML format.
NOTE: The binary image data has been removed from the example.

<Plate>
  <ContextCameraName>Context Camera</ContextCameraName>
  <ContextImage/>
  <Id>32cf870a-46aa-4cfd-914b-00062d98e93a</Id>
  <Latitude>0.0</Latitude>
  <Longitude>0.0</Longitude>
  <LprCameraName>LPR camera</LprCameraName>
  <PlateAnalytics>
    <PlateAnalytics>
      <Key>State Name</Key>
      <Score>-1.0</Score>
      <Value>-</Value>
    </PlateAnalytics>
    <PlateAnalytics>
      <Key>Confidence Score</Key>
      <Score>1</Score>
    <Value>100</Value>
    </PlateAnalytics>
  </PlateAnalytics>
  <PlateImage/>
  <PlateRead>AA7D2</PlateRead>
  <SourceUrl>SharpZ312345</SourceUrl>
  <Timestamp>2020-03-12T21:35:04.8627622+00:00</Timestamp>
</Plate>

Plate read event parameters

The following parameters are included in JSON and XML files that are exported to the HTTP server:

Parameter Value type Description
ContextCameraName String Name of the color context camera that generated the read event.
ContextImage Binary Color context image of the scene. Base64 encoded JPEG image.
Id Guid Unique identifier for the read event.
Latitude Double Decimal latitude of the SharpZ3 camera.
Longitude Double Decimal longitude of the SharpZ3 camera.
LprCameraName String Name of the license plate recognition camera that generated the read event.
PlateAnalytics Array of analytics Each analytic object is composed of a data triplet. This array is of variable size. The amount of analytic objects received depends on the SharpZ3 camera’s configuration.
Key (analytic triplet) String Name of the analytic.
Score (analytic triplet) Float

(-1.0 or 1.0)

Indicates if the analytic value is reliable (1.0) or not (-1.0).
Value (analytic triplet) String Value of the analytic.
PlateImage Binary Black and white cropped license plate image. Base64 encoded JPEG image.
PlateRead String Detected license plate number.
SourceUrl String Unique name of the SharpZ3 camera.
Timestamp DateTime Date and time of the read event (UTC) in the following format: yyyy-MM-ddTHH:mm:ss:fff.