OpenALPR Webhook Processor for IP Cameras

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
i haven't updated the wiki yet, appsettings is going away soon, the whole service will be configured through the ui
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,144
Reaction score
49,014
Location
USA
  • openalpr has a client that runs on your local machine, they have a windows and docker version. it analyzes the video and sends plate results to the cloud.
  • the $5 plan requires you to only report to cloud.openalpr.com
  • the $5 plan allows webhooks, which sends the same payload to wherever you want
  • this service records those webhooks so you can search them locally, storing forever. it can also overlay the plate results onto the lpr camera for extra coolness.
Well dang I wonder where I got the impression that since I couldn't get docker going that I was screwed.

So this stuff is foreign to me - could I (well someone telling me how LOL) use webhooks to add it to the BI Alert clip like Plate Recognizer does?

1611203875974.png
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
depends on how an alert clip gets triggered, i've never used it before.

it started out as only a dockerized app because i use it on my unraid server, but the whole thing is written in angular and dotnet 5, so it can run on any OS native or in docker.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,144
Reaction score
49,014
Location
USA
Hmm - let me see if the BI help file says anything.

I like that Plate Recognizer puts it on the alert clip like this because then it gets stored to the BI Log file and I can take the log every month and add it into a master file that I can then sort and search by plates, but if you have or are creating a utility that does that from OpenALPR that would have to be better than my manual way LOL.

What I don't like is Plate Recognizer only goes by snapshots, so a long vehicle or a shadow can snap a pic early and no plate. OpenALPR pulling from a video stream solves that!

What about your speed thing - is that only docker? I have a straight on camera view on another camera that would be ideal for that.
 

IReallyLikePizza2

Known around here
Joined
May 14, 2019
Messages
1,852
Reaction score
4,443
Location
Houston
Something to keep in mind, I like all my LPR stuff being seperate from my BI machine (Even though I do record the cameras 24/7 anyway)

This way if I reboot BI, I still have plates. And if I reboot the LPR machines, I still have the recordings of the plates in BI
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
it's this project pageauc/speed-camera right now it doesn't support webhooks, but it can be modifed to tie together to post the speed of the vehicle on the lpr camera.

i have it running on a raspberry pi right now, i need it running in a docker container. it's pretty easy to set up and after the calibration it's pretty accurate.
 

IReallyLikePizza2

Known around here
Joined
May 14, 2019
Messages
1,852
Reaction score
4,443
Location
Houston
Out of interest. where is the webhook processor getting the vehicle descriptions? Mine are still off, but not as much as OpenALPR

OpenALPR said a Hyundai Veloster was a Tractor Trailer, webhook processor got it as a Civic
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
the openalpr agent running on your machine generates the vehicle descriptions and sends them to openalpr. the service juts relays the information to the UI
the vehicle information will be 100% incorrect at night.
 

IReallyLikePizza2

Known around here
Joined
May 14, 2019
Messages
1,852
Reaction score
4,443
Location
Houston
Huh, thats weird they disagree with each other. They are completely wrong in the day too for me, end up with Ford Motorcycles and stuff

1611205301445.png
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
that is interesting, mine appear to be off as well.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,144
Reaction score
49,014
Location
USA
@IReallyLikePizza2 - how that works is it is comparing the photo to stock images. And the downside of zooming in tight to get a bigger plate and higher confidence plate is that there is less of a vehicle to see, so vehicle accuracy goes down. If you zoom out and get the whole vehicle, then it will start getting it right more. Now it is a matter of the balance. And with that dahua sunrise/sunset utility, it allows you to set a zoom for day and a zoom for night, so you can zoom out in the day when the plate is probably still readable and get more vehicle id's, and then zoom in at night to ensure higher accuracy of the plates.

Because of this, at night it is a total crapshoot regardless since the image is mostly black.
 

IReallyLikePizza2

Known around here
Joined
May 14, 2019
Messages
1,852
Reaction score
4,443
Location
Houston
Here in Houston we have so many people with year out of date, crumpled up temp tags, I need to be zoomed in all the time to get them (And of course, they are the ones that are assholes littering everywhere)
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,144
Reaction score
49,014
Location
USA
depends on how an alert clip gets triggered, i've never used it before.
The alert clip gets triggered strictly on the motion settings in BI for the camera.

From the BI help file - does this mean anything to you as it relates to getting the plate onto BI alert like above:

M AC RO S
A macro is text that is substituted for a shorter “token” of some sort. The macro tokens %1
- %9 may be used in camera video overlays, as well as throughout the software for things
like email, push notification and SMS body and subject fields.
Although only 9 may be set here, the software actually supports up to 99 of these. You will
find a section in the Windows registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Perspective Software\Blue Iris\Macros
Other software, scripts or the HTTP/JSON interfaces may be used to write to this location
and Blue Iris will immediately adopt the new text. It’s also possible to link a macro to a text
file, perhaps generated in realtime by a weather app for example. The file may contain
multiple lines separated with new line (hex 0x0A) characters.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,144
Reaction score
49,014
Location
USA
Here in Houston we have so many people with year out of date, crumpled up temp tags, I need to be zoomed in all the time to get them (And of course, they are the ones that are assholes littering everywhere)
Yeah, that is why I favor zoom to get the plate than the make/model. That is nice, but the plate is what the police need more than the make/model. And from an overview cam I can probably figure it out or at least let the police know it was a black 4-door sedan.
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
ya, definitely not interested in developing a windows tool that writes to the registry, i wish blue iris had a proper api :(
 

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
most of the cameras have decent api control, there could be a way to trigger an alert in the camera that blue iris could pick up on..
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,144
Reaction score
49,014
Location
USA
ya, definitely not interested in developing a windows tool that writes to the registry, i wish blue iris had a proper api :(
The registry is only after 9 of these LOL, so could we make it happen with 1 of those or is this something different all-together?
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,144
Reaction score
49,014
Location
USA

mlapaglia

Getting comfortable
Joined
Apr 6, 2016
Messages
849
Reaction score
506
i don't see anything, but from how i've seen the weather overlay works is editing the windows registry or adding text files to the filesystem which seems like a nasty hack to me, and wouldn't be supported anyway if the service is running in a docker container possibly even on a different physical machine.
 
Top