I have been trying to configure ALPR Cloud, but have found they offer 1000 credits per month. So looking further and being into cloud solutions and not local installations, I have come across platerecognizer.com.
They seem to be really good nowadays and they offer 2500 image recognitions per month for free.
I wonder, if someone has already configured/created custom integration to support this source?
I’m sure @robmarkcole could whip something up pretty quickly. To fetch some JSON from the Plate Recognizer API is pretty simple:
import requests
apikey = "MY_PLATE_RECOGNIZER_API_TOKEN"
url = 'https://api.platerecognizer.com/v1'
with open ('license_plate.jpg', 'rb') as fp:
try:
response = requests.post(
url+'/plate-reader/',
files=dict(upload=fp),
headers={'Authorization': 'Token ' + apikey})
except requests.exceptions.RequestException as e:
response = {'error': 'Plate recognizer rejected the upload. You either have a bad API key or a bad image', 'results': []}
print ('Plate recognizer rejected the upload. You either have a bad API key or a bad image')
else:
response = response.json()
print ('ALPR JSON: {}'.format(response))
BlueIris installed on my windows PC
Platerecognizer api in BlueIris Settings
Webhook created on platerecogniser website
Webhook trigger in Home Assistant
Logic to check Json payload from webhook and identify plate
If plate recognised it opens my remootio gate