Integrate OpenALPR results with your custom application
WebHooks are a great way to integrate OpenALPR data with other systems such as external databases, parking systems, etc. Every time OpenALPR receives a plate or triggers an alert, the system can forward you the data in JSON format. You'll need an internet accessible endpoint for OpenALPR to send the data. If your application will not have access to the internet, you can pull from the local beanstalk queue as an alternative (see our documentation for details).
One quick way to get started is to use a free endpoint on www.beeceptor.com. This will show you the JSON data as it is received. Copy the JSON locally, and use it to develop code that implements your desired logic for handling the results. The JSON formats for the Alert results and Plate results are shown at the bottom of this article.
Once you've tested your solution, you can switch OpenALPR to your own endpoint. This Github gist is a useful starting point that provides a working HTTP server using only built-in Python3 modules. For production use, we recommend upgrading the backend to a more fully-featured web framework such as Django or Flask.