Modifications you can make to the FTP XML template - SharpOS 11.8

Sharp Administrator Guide 11.8

series
SharpOS 11.8
revised_modified
2020-04-22

The XML code defines the structure of the XML files generated by the Sharp. You can re-sort or remove any of the fields. The XML file name consists of the Sharp name and a unique identification number (for example, SHARP0015_6ee17b00-82c1-466b-9fd6-003417bc82c4_lpr.xml).

Template:

<?xml version="1.0" encoding="utf-8"?>
<AutoVu>
  <Plate>#PLATE_READ#</Plate>
  <State>#PLATE_STATE#</State>
  <UTCDate>#DATE_UTC#{yyyy:MM:dd}</UTCDate>
  <UTCTime>#TIME_UTC#{HH:mm:ss}</UTCTime>
  <CameraName>#CAMERA_NAME#</CameraName>
  <SourceName>#SHARP_NAME#</SourceName>
  <ContextImage>#CONTEXT_IMAGE#</ContextImage>
  <PlateImage>#PLATE_IMAGE#</PlateImage>
  <LongitudeX>#LONGITUDE#</LongitudeX>
  <LatitudeY>#LATITUDE#</LatitudeY>
  <Heading>#HEADING#</Heading>
  <Speed>#SPEED#</Speed>
  <FixQuality>#FIX_QUALITY#</FixQuality>
  <Guid>#GUID#</Guid>
</AutoVu>

Note the following:

  • Hotlist matching is not supported.
  • LocalDate, LocalTime, UTCDate, UTCTime, and TimeZone display the Windows date and time properties.
  • CameraName is set in the Genetec Patroller™ Config Tool.
  • SourceName is the Sharp name (for example, Sharp1234).
  • ContextImage and PlateImage are encoded into text.
  • Heading is the vehicle's direction of travel in degrees from north.
  • Speed is the vehicle's speed in km/h.
  • FixQuality is the quality of the GPS position according to NMEA standards. The following values are exported:
    • 0 = invalid
    • 1 = GPS fix (SPS)
    • 2 = DGPS fix
    • 6 = estimated (dead reckoning)
  • Guid is the unique identification of the event read.
  • You can add the following custom fields to the template:
    State Name
    The Sharp will attempt to read the plate’s origin in addition to the plate number (some plates include the issuing state or province). This may not be possible for all types of license plates.
    To use this field, add <State>#CUSTOM_FIELDS#{State Name}</State> to the XML, and then select Read plate state on the Configuration page of the Sharp Portal.
    NOTE:
    • The LPR Context you are using must support the state name feature.
    • The Sharp must be able to correctly read the plate state from the license plate.
    Relative Motion
    When the Sharp reads a plate, it detects and displays if the vehicle is approaching or moving away.
    To use this field, add the following line to the XML:

    <RelativeMotion>#CUSTOM_FIELDS#{Relative Motion}</RelativeMotion>.

    Vehicle Type
    Certain license plates include character symbols that identify specific vehicle types (for example, taxi, transport, and so on). If the Sharp can read these symbols, it will display the vehicle type along with the other read/hit information.
    To use this field, add the following line to the XML:

    <VehicleType>#CUSTOM_FIELDS#{Vehicle Type}</VehicleType>.

  • If using FTP with GPS coordinates, you’ll need to add longitude and latitude fields.
<?xml version="1.0" encoding="utf-8"?>
<AutoVu>
   <Plate>#PLATE_READ#</Plate>
   <LocalDate>#DATE_LOCAL#(HH:mm:ss)</LocalTime>
   <UTCDate>#DATE_UTC#(yyyy:MM:dd)</UTCDate>
   <UTCTime>#TIME_UTC#(HH:mm:ss.fff)</UTCTime>
   <TimeZone>#TIME_ZONE#</TimeZone>
   <CameraName>#CAMERA_NAME#</CameraName>
   <SourceName>#SHARP_NAME#</SourceName>
   <ContextImage>#CONTEXT_IMAGE#</ContextImage>
   <PlateImage>#PLATE_IMAGE#</PlateImage>
   <LongitudeX>#LONGITUDE#</LongitudeX>
   <LatitudeY>#LATITUDE#</LatitudeY>
   <Heading>#HEADING#</Heading>
   <Speed>#SPEED#</Speed>
   <FixQuality>#FIX_QUALITY#</FixQuality>
   <Guid>#GUID#</Guid>
</AutoVu>