Blue Iris and CodeProject.AI ALPR

Yeah, I've done this about a dozen times. I get a folder browser, it does not pull up a list. On version older than .25, it pulls up the list similar to yours.
Hmmm weird. I'm on version .25. Not sure what the issue is. Might as well stick with what works for now.
 
Interesting. I didn't even think to use Wireshark....

I did stop the BI service and restart it.... I'll read out to Ken/support...

@wpiman @PeteJ
I'm joining the queue as I'm experiencing the exact same issue. While reinstalling Windows under BI, I ran into this problem after getting everything set up again. I spent hours troubleshooting before coming here and realizing that I was likely running a version earlier than 5.9.9.25 before the reinstall. (I'm also running CPAI in Docker and have never had the "Use custom model" option enabled in the BI AI configuration.)

I also noticed that in versions 5.9.9.25 and 5.9.9.27, BI no longer detects the CPAI update status in the 'Blue Iris News and Updates' tab, whereas it did in versions prior to 5.9.9.25.

Installing 5.9.8.5 resolved the issue for me, but since it's an older version, we lose a lot of fixes and updates by downgrading.

Additionally, I saw a suspicious entry in the 5.9.9.25 changelog: "AI hardening" - I imagine this is related to our issue?!

@wpiman Have you reached out to Ken?
 
  • Like
Reactions: wpiman
That is just weird how its inconsistent as I am on BI (Win10 bare metal) = 5.9.9.25, CP.AI (docker on unraid box) = 2.9.95 2.9.5, LPR module = 3.3.4 but my LPR is working:

1741118861354.png

There has to be something else not working right.
 
Last edited:
@hopalong, based on your AI config tab in the main configuration, it looks like it's working for you because you're running some kind of hybrid setup between external and local CPAI. If you were using only external CPAI, you wouldn’t be able to select custom models in that menu: it would simply display the available models from the external CPAI as a read-only info panel. Additionally, the "Start Now" button would be inactive if you were solely using external CPAI. So, have you ever installed CPAI locally by any chance on your Windows system under Blue Iris?

 
@hopalong, based on your AI config tab in the main configuration, it looks like it's working for you because you're running some kind of hybrid setup between external and local CPAI. If you were using only external CPAI, you wouldn’t be able to select custom models in that menu: it would simply display the available models from the external CPAI as a read-only info panel. Additionally, the "Start Now" button would be inactive if you were solely using external CPAI. So, have you ever installed CPAI locally by any chance on your Windows system under Blue Iris?

CP.AI is only running on docker on an external machine. I've never installed it on my windows machine.

1741134671546.png

10.10.0.100 is the IP of my unraid box running CP.AI. The IP of my BI machine is 10.10.30.10. From what I understand, when you click the 3 dots under Use Custom Models, it is pulling that list from the cp.ai instance which happens to be the unraid box.

Again I had an issue previously where when I did click the 3 dots, it was asking for a windows folder location. I then clicked the Start Now button and then list of custom models appears under the 3 dots.

1741135200096.png
 
HI All,

I have my CP server as a linux box and I had been trying to get the cropped plate to work on my system. I found that even after enabling it, it was not storing alpr.jpg anywhere on my system. It should be storing it in %ROOT_PATH%/server/wwwroot/

However, the configuration in: /usr/bin/codeproject.ai-server-2.9.5/modules/ALPR/modulesettings.json, line 44 had: "CROPPED_PLATE_DIR": "%ROOT_PATH%/Server/wwwroot"

Once I changed it to "CROPPED_PLATE_DIR": "%ROOT_PATH%/server/wwwroot" it started working

A case of case sensitivity!

Just thought I would post in case anyone else was trying to get it to work
 
  • Like
Reactions: jjBerg
10.10.0.100 is the IP of my unraid box running CP.AI. The IP of my BI machine is 10.10.30.10. From what I understand, when you click the 3 dots under Use Custom Models, it is pulling that list from the cp.ai instance which happens to be the unraid box.

Again I had an issue previously where when I did click the 3 dots, it was asking for a windows folder location. I then clicked the Start Now button and then list of custom models appears under the 3 dots.

View attachment 216022

That's odd...
On v5.9.8.5, where the config panel has a different layout, I see the following options for custom selection when clicking the three dots while using an external Docker for CPAI:

1741158651552.png

So, there's no option to select the models, which makes sense since the models are managed within the Docker, not by Blue Iris on the Windows machine.
However, starting from v5.9.9.25, it's now asking for a Windows folder location...
Not sure what's going on.

One thing I noticed however: you have a newer version from CPAI. I have v2.9.7 as latest available in unRAID. How did you installed v2.9.95? Maybe that version difference is causing the issue?!
Edit: I don't even find that CPAI version at CPAI github.
 
One thing I noticed however: you have a newer version from CPAI. I have v2.9.7 as latest available in unRAID. How did you installed v2.9.95? Maybe that version difference is causing the issue?!
Edit: I don't even find that CPAI version at CPAI github.
CP.ai is 2.9.5. I mistyped it.

1000023313.png

EDIT - MORE DETAILS
Mine is at 2.9.5 as I am using this repository below so I can use my GPU (Tesla P4 8GB SFF) for the YOLO:

1741210459420.png

1741210868318.png

While updating some things in unraid I again observed the following in BI.

CP.AI had restarted, I launched BI and the usual Blue Iris News and Updates window popped up and I noticed the bottom CP.AI updates wasn't showing anything:

1741210608525.png

I then navigated to BI Settings --> AI and clicked the 3 dots for custom models. The windows folder picker popped up:

1741210671564.png

I click the "Start now" button and then the Select Models window appears:

1741210728389.png


Going back to the Blue Iris News and Updates window now shows CP.AI running:

1741210780608.png



Maybe those having trouble roll back to CP.AI 2.9.5 ?
 
Last edited:
To use the new Save Cropped Plate feature you need to create a new camera with the below settings

View attachment 188176
View attachment 188177
View attachment 188178


What needs configured to allow it to show the cropped image along with the alerts like you have here? My camera will show the cropped plate and might add it to the timeline, sometimes to alerts and often doesn't add it anywhere.

Also, I notice that CP saves a cropped plate for each AI image it looks at, so if you are confirming with 20 images, it will have saved 20 images and all are collected by that camera, and the one that ends up displayed might not be the best version of the plate. Is there a way to have CP only save the best cropped plate or for BI to display the best one? Below, last pic before leaving the frame, part in, part out of frame.

1741272293082.png
 
Last edited:
CP.AI had restarted, I launched BI and the usual Blue Iris News and Updates window popped up and I noticed the bottom CP.AI updates wasn't showing anything:

I'm experiencing this as well. This is what I meant when I said I noticed that in versions 5.9.9.25 and 5.9.9.27, BI no longer detects the CPAI update status in the 'Blue Iris News and Updates' tab, whereas it did in versions prior to 5.9.9.25.

I click the "Start now" button and then the Select Models window appears:

I firmly believe that the "Start now" button is only available if you have CPAI installed locally on Windows (...or perhaps had it installed previously, and some remnants remain after uninstalling, causing BI to detect it as still present).
For me, that button is always disabled, which makes sense since BI cannot control the startup of an external CPAI instance running as a docker on unRAID.

Are you absolutely certain that you never had CPAI installed? I am just asking, because that could explain why the "Start now" button is enabled for you.

It seems like we're experiencing the same issue, so there's consistency re this. I assume you didn't need to use the "Start now" button in versions before 5.9.9.25 either. However, you can work around this now by using the button (which is mysteriously available in your BI for some reason).
 
I'm experiencing this as well. This is what I meant when I said I noticed that in versions 5.9.9.25 and 5.9.9.27, BI no longer detects the CPAI update status in the 'Blue Iris News and Updates' tab, whereas it did in versions prior to 5.9.9.25.

I had updated to the latest release 5.9.9.27 then rolled back to 5.9.9.25. It took a few times which was different. BI would close after installing .25 then when it came back it was on the previous version .27.

I've never installed CP.AI on the BI machine. The only thing that I can think it might be is that I was previously having a weird cp.ai issue on an earlier version of BI where when I clicked the 3 dots for the custom models it was coming up with the windows folder picker. So I copied the models from the docker container to a local folder on the BI machine to point to, or something like that. It didn't work so I ended up deleting the cp.ai docker container on the unraid machine and did a complete re-install. I don't recall what version that was. Those custom models aren't on the BI machine any more either.

But yes it does sound like we are experiencing something similar and for some reason BI isn't correctly connecting to CP.AI or know how to via the "AI hardening" in the .25 release I've never had to press the Start now button till recently.

:idk:
 
Last edited:
Ok, regarding the issue that I originally posted about here that others seem to be having.....

Ken got back to me, and if you have a remote server and auto-start is not set it gets confused and doesn't ping the AI. This will be fixed in the next rollout.

I don't have time today, but does anyone with the same issue who didn't roll back their version of BI enable this feature and run some tests?

"The issue appears to be that if "auto start/configure" was not set, the remote server was not queried at all, making the software think there was no AI service. I will be changing this for 5.9.9.28.

Thanks

Ken"
 
  • Like
Reactions: olympia
Wow, yes, enabling auto-start (while not having local CPAI installed, so there is no CPAI to actually auto-start) fixes the issue for me. 5.9.9.27 is up and running with remote CPAI in unRAID docker what was not possible before.
Thank you for following up on this!
 
Last edited:
  • Like
Reactions: wpiman
Wow, yes, enabling auto-start (while not having local CPAI installed, so there is no CPAI to actually auto-start) fixes the issue for me. 5.9.9.27 is up and running with remote CPAI in unRAID docker what was not possible before.
Thank you for following up on this!
Thanks. I will try to upgrade later today. Thanks for being the Guian pig
 
Wow, yes, enabling auto-start (while not having local CPAI installed, so there is no CPAI to actually auto-start) fixes the issue for me. 5.9.9.27 is up and running with remote CPAI in unRAID docker what was not possible before.
Thank you for following up on this!
I just upgraded to 5.9.9.27. Working at this point. I had previously upgraded to 5.9.9.27 and it worked for a few days, then mysteriously quit. It's doubtful that I had the start checked at that time and downgraded to get it working again, so this might just be the fix for now.
 
Maybe that's why my .25 is working since I updated to .27 then rolled back to .25. It took a couple attempts to get back on .25 and maybe there was something leftover from .27 to make my .25 work
 
I just went to .28 and it works now, no changes needed to auto start (the option remains grayed out) and now the model list is populated properly on my CPAI running on another machine.
 
  • Like
Reactions: wpiman