Skip to main content

Custom Webhook Integrations

Plate Recognizer lets you forward the inference results to a third party. Here are examples for how to use our webhook API.

Sample Code

You can find the sample code in this repository.

After starting the receiver, configure Snapshot or Stream webhooks in Plate Recognizer with the URL http://<your-machine-ip>:8001/.

Python Without Dependencies

python3 webhook_reader.py

Python and Flask

pip install Flask==1.1.2
python3 webhook_reader_flask.py

Javascript / Node

npm install
node webhook_reader.js

C# / .Net Framework v4.8:

Install this NuGet package required for MultiPart Parsing

Install-Package HttpMultipartParser

Build Solution and Run WebhookReader.exe as a Console Application

Sending Data to the Webhook Receiver

  1. Find your machine local IP for example 192.168.0.206. You can use ifconfig to get it.
  2. Send an example webhook to the server. If it is running correctly, it should exit without an error.
  3. Optionally, you can send an authentication token with -e TOKEN=XXX or a camera with -e CAMERA=XXX to identify the webhook source.
docker run -e URL=http://MY_IP_ADDRESS:8001 platerecognizer/webhook-tester
  1. 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.

Home Assistant

This project uses Stream webhooks to send license plate data to a home automation server. Form there, it will send a notification.

Webhook via AWS Lambda

This guide aims to provide you with a minimum sample to receive webhook data from Snapshot/Stream on your AWS Lambda instance.

By following the steps above, you can successfully integrate Plate Recognizer Stream with your chosen middleware. This setup allows you to process and forward webhook data to various services, enhancing the capabilities of your license plate recognition system.

For further assistance, feel free to consult the official documentation or reach out to the support team.


Floating button icon
CTRL + .