Blue Iris and CodeProject.AI ALPR

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,214
Reaction score
4,253
Location
Brooklyn, NY
I'm curious when the "always look for plates" bug will be fixed in BI. Other than that, the new lpr stuff has been working excellent for me.

View attachment 153135

9 cams and one lpr... the bug wasting a lot of gpu cycles.
add alpr:0 to your camera's Custom Models, this will stop the alpr from running.
 

woolfman72

Getting the hang of it
Joined
Dec 28, 2015
Messages
152
Reaction score
73
Have you had a chance to try this without internet yet?

I did a clean install on my test computer (blew it out and reinstalled Win10 with Media Creation Tool) and downloaded the latest 2.0.7 in case it fixed whatever issues I had for 2.0.6

I am only testing CodeProject and not the integration with BI yet. I want to make sure it can read the new 3M plates consistently be feeding it images before I switch my main machine.

So I am just sending test images that CodeProject provides.

I reinstalled CodeProject last night and let the computer have internet all night.

This morning I try the test plate and it works

View attachment 153035

Then I turn off wifi and try again and even though it shows online it won't return anything and throws up the errors in the log:

View attachment 153037

Turn the wifi back on and it starts working again. I am stumped what that could be?
look into installing a test loop back adapter its built into windows and see if that's fixes the issue. "localhost" and no internet has been a bane of my existence recently at work with some software.
 

Alan_F

Getting the hang of it
Joined
May 17, 2019
Messages
64
Reaction score
57
Location
Maryland
Thanks. I’m running with a GPU. I was under the impression. That with the new update we had to use the default object detection. Tried to mirror Mike’s settings.
Are you running NVIDIA CUDA or a built-in Intel GPU? Those response times seem really long. I'm running an NVIDIA GeForce GT 1030 with 2 GiB of RAM and mostly get sub 100ms responses, with the slowest ones still around 500ms. I think I'm on the latest version of BI and CPAI and I'm only using license-plate on LPR cameras and only using Ipcam-general on cameras where I want to detect vehicles but not plates.
 

Crest6010

Young grasshopper
Joined
Nov 20, 2019
Messages
38
Reaction score
5
Location
Maryland
Are you running NVIDIA CUDA or a built-in Intel GPU? Those response times seem really long. I'm running an NVIDIA GeForce GT 1030 with 2 GiB of RAM and mostly get sub 100ms responses, with the slowest ones still around 500ms. I think I'm on the latest version of BI and CPAI and I'm only using license-plate on LPR cameras and only using Ipcam-general on cameras where I want to detect vehicles but not plates.
Nvidia CUDA. I have a quadro K2200 4 GB Ram. I can’t seem to get the response times everybody else is getting. Using ALPR and Ipcam-general as well
 
Last edited:

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,041
Reaction score
48,824
Location
USA
look into installing a test loop back adapter its built into windows and see if that's fixes the issue. "localhost" and no internet has been a bane of my existence recently at work with some software.
Well what do you know - we learn something new everyday!

This fixed it!!!!

For those having same problem, these are the steps to install the microsoft loopback adapter:
  • right click on window start menu icon and select Device manager. Device manager window will immediately open (or you may use any other way how to open device manager window)
  • click on Action, and select Add legacy hardware
  • click Next on welcome screen
  • choose "Install the hardware that i manually select from a list" and click on Next
  • scroll down and select Network adapters from offered common hardware types and click on Next
  • select Microsoft as the manufacturer, and then select Microsoft KM-TEST Loopback adapter card model, click on Next
  • click on Next
  • click on Finish
@MikeLud1 - is there anything we can do about stopping it from checking for available modules every 3 seconds if there is no internet? The log file is just filling up every 3 seconds with an entry.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,214
Reaction score
4,253
Location
Brooklyn, NY
@MikeLud1 - is there anything we can do about stopping it from checking for available modules every 3 seconds if there is no internet? The log file is just filling up every 3 seconds with an entry.
I will let them know of the issue.
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
743
Reaction score
698
The log file is just filling up every 3 seconds with an entry.
I’m not seeing this in my log files. I wonder if now that you have your loop back issue resolved if reinstalling or repairing your CPAI would help?
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,041
Reaction score
48,824
Location
USA
I’m not seeing this in my log files. I wonder if now that you have your loop back issue resolved if reinstalling or repairing your CPAI would help?
When you pulled internet you are not getting the "error checking for available modules: No such host is known. (www.codeproject.com443)"

I just tried repair and that didn't do it, so I uninstalled and reinstalled and that didn't do it either.
 

jairbj

n3wb
Joined
Aug 9, 2022
Messages
6
Reaction score
0
Location
Brazil
Just enabled ai-server in my blueiris (switched from deepstack) but the option "ALPR for plates" is greyed out.

I'm running ai-server on docker.

1675634127305.png
1675634160599.png
 

jairbj

n3wb
Joined
Aug 9, 2022
Messages
6
Reaction score
0
Location
Brazil
Try the good old reboot the computer, also make sure you are on the current version of BI
Hi friend, I've tried it but it didn't solve the problem.

1675643486230.png

It looks like blue iris is not understanding that I'm runing ai-server on a remote server instead of running locally on windows.
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
743
Reaction score
698
I'm runing ai-server on a remote server instead of running locally on windows.
The BI app cannot find your custom model folder. Since you're running CPAI on a remote server try clicking on the three dots and browse to the custom model folder on the remote machine. You can also keep the auto start/stop option disabled. Ken told me BI cannot start and stop services on a remote machine.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,214
Reaction score
4,253
Location
Brooklyn, NY
Hi friend, I've tried it but it didn't solve the problem.

View attachment 153268

It looks like blue iris is not understanding that I'm runing ai-server on a remote server instead of running locally on windows.
A workaround to get custom models to work is create a folder named custom models and add empty txt files with the custom model name and pt extension, so the file name should look like this ipcam-general.pt. Then point BI to this new folder
 

sp3ctre

Getting the hang of it
Joined
Sep 29, 2018
Messages
53
Reaction score
28
Location
UK
Further to my previous message about rules for British plates, I have been giving the issue some thought.

If we are going with a generic license plate model then we can't bake the logic into the AI rules, as plates from elsewhere in Europe may have different rules. With that in mind I am working on some general UK rules that I am running as a post process to BI reporting the plate, so the plate is "corrected" before being passed to my downstream systems.

The biggest culprits seem to be "I" and "O".

I is easy to deal with as the letter I does not exist, so a global search and replace to convert to 1 works well.

"O" is the tricky one. As far as I can see there is no case where the number 0 would be in position 1 or 2 on the plate, so I do a conversion on the first 2 positions to replace any 0 (zero) with the letter O.

Once these processes have been run I check for a "modern" plate layout, so "AA??AAA" and replace any "O" with 0 (zero) in the number portion of the plate.

A lot of this does presume that you have a clear read of the plate and mistakes can still be made, but I am currently running on approx 97% accuracy rate during the day and alightly less at night, but still very good.

So unless we looked to have a UK localised AI solution that could be trained on the rules I think a lot of this work has to be done post-process rather than in the AI.

Anyway, that's my brain-dump for a monday morning, would appreciate thoughts.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
25,041
Reaction score
48,824
Location
USA
^I would certainly agree with that logic. As I joked previously, unless @MikeLud1 clones himself, chatGPT can take over, or it turns into a paid solution, I think there are so many different local naming rules that it would be a monumental task to incorporate all of this in the AI.

I mean we know it can be done as Rekor and Plate Recognizer do it, but those are paid services.

I think most would be happy with this being able to simply read the characters with high enough accuracy that it could be used if something happened. So if 1 is mistaken for an I and a 0 for a O, it is still enough for the police to go on with the variations to try.

That is awesome you can write code to process this for you for your locale!
 

105437

BIT Beta Team
Joined
Jun 8, 2015
Messages
2,046
Reaction score
951
Looking for a second set of fresh eyes on my settings. I must be missing something because I'm not getting any interaction between BI and CPAI as for as the license-plate model goes. Let me know if you see anything that's not correct. These settings are for my Mailbox cam and license-plate isn't showing up in the log. Thanks!

Screenshot 2023-02-06 at 10.14.36 AM.png

Screenshot 2023-02-06 at 10.12.48 AM.png
Screenshot 2023-02-06 at 10.18.28 AM.png
Screenshot 2023-02-06 at 10.22.34 AM.png
Screenshot 2023-02-06 at 10.11.14 AM.png
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,214
Reaction score
4,253
Location
Brooklyn, NY
Looking for a second set of fresh eyes on my settings. I must be missing something because I'm not getting any interaction between BI and CPAI as for as the license-plate model goes. Let me know if you see anything that's not correct. These settings are for my Mailbox cam and license-plate isn't showing up in the log. Thanks!

View attachment 153330

View attachment 153325
View attachment 153327
View attachment 153331
View attachment 153329
It could be you are running to many models, how are the times if you only run one model
 
Top