Plate Recognizer lets you forward the inference results to a third party. Here are examples for how to use our webhook API.
Here are some webhook server examples. Pick one of the options below.
- Python and the standard library:
Start the server
python3 webhook_reader.py
- Python and Flask:
Install flask
pip install Flask==1.1.2
Start the server
export FLASK_APP=app.py
export FLASK_DEBUG=1
python3 -m flask run -h 0.0.0.0 -p 8001
- Javascript / Node:
Install dependencies
npm install
Start the server
node server.js
- C# / .Net Framework v4.8:
Install this NuGet package required for MultiPart Parsing
PM> Install-Package HttpMultipartParser
Build Solution and Run WebhookReader.exe as a Console Application
- Find your machine local IP for example 192.168.0.206. You can use
ifconfig
to get it. - Send an example webhook to the server. If it is running correctly, it should exit without an error.
docker run -e URL=http://MY_IP_ADDRESS:8001 platerecognizer/webhook-tester
- Configure the webhook on Platerecognizer.
- In Stream, edit your
config.ini
, add the following to a camera:webhook_target = http://MY_IP_ADDRESS:8001/
- For Snapshot, open Webhooks Configuration.
- In Stream, edit your
- Connect Stream to Home Assistant. This project uses Stream webhooks to send license plate data to a home automation server. Form there, it will send a notification.