Adapted from an AppDaemon script I’ve used for 10 years or so, will integrate any ANPR camera that can upload an image when a vehicle is detected, by FTP, NAS or whatever.
anpr2mqtt listens (without polling, using file system callbacks) to a given directory, and when a file appears there, will analyse the file name and contents, and create a sensor and image entity on Home Assistant using MQTT Discovery, so no Home Assistant config required.
Additonally, it will lookup the vehicle details in the DVLA API for UK users to enrich the info, and let you upgrade the notification priority for example if it’s an untaxed vehicle.
It can also use image tools and OCR to read parts of the image and pass that over MQTT - for example some cameras will include the vehicle direction somewhere on the image, so you can notify precisely about approaching or leaving vehicles.
There’s tuning to correct ANPR mistakes on registrations, a way to classify known or dangerous vehicles, with a description of the vehicle, and a tracker that counts how often a vehicle has previously been seen.
One agent, best run in a Docker container, can monitor multiple cameras, and they don’t have to be ANPR - any image that has info to be gleaned from the file name or onscreen labels can be analysed and provided over MQTT.
An example automation is provided, along with a docker-compose config, with extra goodies for notification using Supernotify ( have different chimes play for known or unknown vehicles, get the ANPR image as an email attachment, have a voice assistant announce the visitor, make a siren go off if its a possible dodgy vehicle )