Blue Iris and CodeProject.AI ALPR

Alan_F

Getting the hang of it
Joined
May 17, 2019
Messages
64
Reaction score
57
Location
Maryland
What is Gotify?
It's a locally hosted notification server. The phone app is Android-only, so if you're an iOS user, you can stop reading here. - Gotify · a simple server for sending and receiving messages

To use it you need to: have a DDNS or fixed IP to connect back from the internet, set up your router firewall to forward a port to the host machine, and set up NGINX or other web server on the host machine to proxy the http and websocket connections to the Gotify server. The notification are completely local when you're on the LAN, so if my WAN goes down and I'm home, my phone will receive alerts letting me know. When away from home, the phone app connects back to home using the DDNS name. The only reliance on cloud services is that I use no-ip.com to keep the DDNS record updated when my WAN IP changes. You can have different priorities for messages, and those are grouped into 4 categories in Android, so you can have up to 4 notifications based on priority. I have silent (priority 0), a quiet tone (priority 1-3), a slightly louder tone (priority 4-7) and the Star Trek original series Red Alert klaxon (priority 8 messages - the ones I need to look at NOW).

That Gotify node in my flow is actually a sub-flow, not a node from the palette. I use the sub-flow just to make things look a little cleaner, but you can just send the server a jSON formatted msg.payload via a http-out (POST) node and it will send the notification. I find it easier to use with the sub-flow setting up the message for me based on the parameters in the change nodes.
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
740
Reaction score
693
Thanks, I try this with pushover or maybe even tie it to a Hubitat switch node.
 

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
set up your router firewall to forward a port to the host machine
Since we are venturing OT, I will add that running a vpn server for remote access to BI (and/or other lan resources) is best practice for security. Port forwarding opens up your network to many security issues... this is perhaps the #1 reason for there being so many open streams available at shodan.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,206
Reaction score
4,247
Location
Brooklyn, NY
Here's one for you @MikeLud1. AI recognized the license plate frame and not the tag.

View attachment 152526
Version 2.0 should detect some of the plate, v1.0 is calculating the total area of the text box for text found. Version 2.0 takes the tallest text box. I ran the image through the OCR module and it found most of the text except the NN do to the dark background.

1675123117051.png
 

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
I had a florida plate where it added a G in the middle, where the orange is located. It gets it right most of the time, but the orange showed up really good on that one.
 

Mike A.

Known around here
Joined
May 6, 2017
Messages
3,828
Reaction score
6,386
I get that same kind of thing sometimes in Plate Recognizer. Quite a few commercial vehicles phone numbers, etc.
 

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
Is anyone else still having issues with modules not working after reboot? There has been at least 3 BI updates since I posted about having a problem. Just checking in to see if maybe I need to reinstall some stuff.

[edit: A follow up to help others with the same issue:

I got no response to this post, which I think confirms it was a problem on my end. I was finally able to get AI working after reboot by 1) set cpai service to start automatically, 2) disable AI in BI settings, 3) disable BI service in BI settings, 4) close BI, 5) run a "Repair" using the cpai 2.0.7 installer, 6) reboot windows, 7) enable AI in BI settings, 8) enable BI service in BI settings, 9) restart BI. After this, AI is now working after reboot, without me having to stop/start AI using BI settings. This was with BI 5.6.9.6.
]
 
Last edited:

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
I have seen this warning pop up a few times... wonder what it means, and if it's normal and can be ignored?

09:14:34:ALPR_adapter.py: [2023/01/31 09:14:34] ppocr WARNING: Since the angle classifier is not initialized, the angle classifier will not be uesd during the forward process
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,206
Reaction score
4,247
Location
Brooklyn, NY
I have seen this warning pop up a few times... wonder what it means, and if it's normal and can be ignored?

09:14:34:ALPR_adapter.py: [2023/01/31 09:14:34] ppocr WARNING: Since the angle classifier is not initialized, the angle classifier will not be uesd during the forward process
You can ignore it, it has to do with a OCR feature that we are not using.
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,030
Reaction score
934
@MikeLud1, now that I have been able to get v2.0.7 installed successfully, I'm trying to get DayPlate ALPR working for a couple of my cameras. Here are my BI AI settings and camera AI settings. With these settings, I didn't get any results. I'm sure I must be missing something. Thanks!

1675188081411.png

1675188153171.png

Screenshot 2023-01-31 at 12.50.45 PM.png

3 1/31/2023 12:44:45.582 PM Entry_Cam MOTION_A
0 1/31/2023 12:44:46.504 PM Entry_Cam AI: [ipcam-general] vehicle:94% [449,276 845,477] 533ms
 

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
I am pretty sure you need to add DayPlate to your "to confirm" list, but not sure why AI is not even finding Plates.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,206
Reaction score
4,247
Location
Brooklyn, NY
@MikeLud1, now that I have been able to get v2.0.7 installed successfully, I'm trying to get DayPlate ALPR working for a couple of my cameras. Here are my BI AI settings and camera AI settings. With these settings, I didn't get any results. I'm sure I must be missing something. Thanks!

View attachment 152607

View attachment 152608

View attachment 152609

3 1/31/2023 12:44:45.582 PM Entry_Cam MOTION_A
0 1/31/2023 12:44:46.504 PM Entry_Cam AI: [ipcam-general] vehicle:94% [449,276 845,477] 533ms
Also I do not see the license-plate model be used, did you delete it.
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,030
Reaction score
934
I am pretty sure you need to add DayPlate to your "to confirm" list, but not sure why AI is not even finding Plates.
Thanks. it is there. I just didn't scroll over before making the screen shot.
1675190991712.png
 
Top