English Română
Overview This plugin provides seamless integration between the Metrici License Plate Recognition (LPR) engine and Milestone XProtect video management system. It receives LPR data via HTTP POST requests and stores the events in a SQLite database for viewing inside XProtect.

1. Features

2. System Requirements

3. Installation

  1. Build the plugin (if building from source):
    dotnet restore MetriciLprPlugin.sln
    dotnet build MetriciLprPlugin.sln --configuration Release
  2. Deploy the assemblies to the XProtect plugins folder, e.g.
    C:\Program Files\Milestone\XProtect <Version>\Server\Plugins\MetriciLprPlugin\
      MetriciLprPlugin.dll
      MetriciLprPlugin.Admin.dll
  3. Register the plugin in the XProtect Management Application → Servers → Plugins → Add → select MetriciLprPlugin.dll and enable it.
  4. Configure basic settings (HTTP port, authentication key, data directory) through the plugin configuration UI.
  5. Open firewall for the chosen port, e.g.:
    New-NetFirewallRule -DisplayName "Metrici LPR Plugin" -Direction Inbound -Protocol TCP -LocalPort 8080 -Action Allow
  6. Restart XProtect services (Smart Client, Management Server, Recording Server, Event Server) and verify the plugin loads.

4. Configuration

Camera Configuration

Through the XProtect Management Client → Plugin Configuration → Camera Configuration you can add each LPR camera:

HTTP Server Settings

Per‑Camera Authentication

Each request must contain an auth field – an MD5 hash calculated from the request fields plus the camera‑specific secret key.

5. API Usage

Required fields (multipart/form‑data)

Optional fields

Example request

curl -X POST http://localhost:8080/lpr/event \
  -F "id=1" \
  -F "number=ABC123" \
  -F "country_code=RO" \
  -F "first_seen=2024-01-15_14:30:25" \
  -F "last_seen=2024-01-15_14:30:27" \
  -F "probability=0.95" \
  -F "direction=1" \
  -F "transactionkey=tx_12345" \
  -F "vehicle_class=Car" \
  -F "auth=YOUR_MD5_HASH" \
  -F "plate_image=@plate.jpg" \
  -F "car_image=@car.jpg"

6. User Interface

Main View

Side Panel

Administration Interface

7. Development

The project is a WinForms‑based .NET solution. Key components include:

To build from source:

# Restore packages
dotnet restore

# Build Release
dotnet build --configuration Release

# Run tests (if any)
dotnet test

8. Troubleshooting

Common Issues

9. Support

For technical support, consult the plugin logs (located in the application data directory) or contact the development team. More information about Metrici solutions is available at www.metrici.ro.

License © Metrici 2025. All rights reserved. This plugin is intended for use with Metrici LPR engine products only. Unauthorized distribution is prohibited.