Blue Iris and DeepStack ALPR

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
748
Reaction score
704
Is the rest of DeepStackALPR working for you.
I'm still working on it. It's snowing here and my LPR camera is going nuts with canceled alerts.
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
748
Reaction score
704
It is working, but it is running really slow. I'm running the CPU version of deepstacks and it seems to be missing a lot of plates.

Screen Shot 2022-02-16 at 4.10.50 PM.png
 
Last edited:

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,219
Reaction score
4,265
Location
Brooklyn, NY
It is working, but it is running really slow. I'm running the CPU version of deepstacks and it seems to be a lot of plates.

View attachment 119090
Great, is all parts working, see below. Does your camera have more zoom, if so zoom in it will help with the character reading. For the OCR to work you need about 100 pixels across the plate.

1645054741813.png

Blue Iris Logging
1645054504594.png
1645054569385.png
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,219
Reaction score
4,265
Location
Brooklyn, NY
And here's the actual BlueIris logfile from today
From what I can tell it looks like the API is not communicating back to Blue Iris.
Try manual running the API in a Command Prompt using the below steps. Post a screenshot of the Command Prompt so I can see if there are any errors. Below is a normal Command Prompt

First stop DeepStackALPR Service using Task Manager
1645058587781.jpeg

Next Open up Command Prompt and execute the below commands
  • cd C:\Program Files (x86)\DeepStackALPR
  • deepstackalpr.exe
1645058880908.jpeg
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
748
Reaction score
704
Great, is all parts working, see below. Does your camera have more zoom, if so zoom in it will help with the character reading. For the OCR to work you need about 100 pixels across the plate.
Yep, everything seems to be working but I need to zoom in a little bit more. To do this I'll have to adjust the mounting a bit so it will have to wait for a dryer warmer day, :)

File_000.png
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
748
Reaction score
704
Great, do you have any suggestions to make the instructions easier to use and understand.
The only thing that wasn't clear to me was the IP address for the ALPR camera. You could add something that clearly define this.
 

johnstjs

Getting the hang of it
Joined
Dec 7, 2020
Messages
74
Reaction score
36
Location
08070
From what I can tell it looks like the API is not communicating back to Blue Iris.
Try manual running the API in a Command Prompt using the below steps. Post a screenshot of the Command Prompt so I can see if there are any errors. Below is a normal Command Prompt

First stop DeepStackALPR Service using Task Manager
View attachment 119098

Next Open up Command Prompt and execute the below commands
  • cd C:\Program Files (x86)\DeepStackALPR
  • deepstackalpr.exe
View attachment 119099
Hey Mike

It appears to be working now. Now I just have an issue with Deepstack recognizing plates and then reading characters when it does. I think I just need to adjust my settings a bit on the LPR camera. I'm taking a break from this for a bit. Thanks for all of your help!

Jeff
 

johnstjs

Getting the hang of it
Joined
Dec 7, 2020
Messages
74
Reaction score
36
Location
08070
OK - I lied (about it working and about me taking a break. I just hate to lose to a computer LOL). I don't know why it worked "some" last night. I glanced and saw a few jpgs in the Alerts\ALPR folder when nothing had been there before. But then I realized last night was work night at the club so there was 20-30 cars/truck pulling in and out between 4:00pm and 9:00pm and there were only 3 jpgs in the folder. And now this morning there's been a few cars in and out an nothing. Running the deepstackalpr.exe manually I see there is a permissions error.

1645111493438.png

Attached is the log file from the Alerts/ALPR/20220216/ folder. It appeared to write a couple of files to that folder today instead of creating a new 20220217 folder.

1645111691745.png

Last question - Any reason you can think of that Deepstack would pick up the first 2 licenses plates and not the 3rd?

LPR.20220217_090000.2952181.6147-9.23948.45400.jpg
LPR.20220217_090000.2954283.6147-9.16601.19598.jpg
LPR.20220217_100000.424002.131-9.2141.2141.jpg
 

Attachments

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,219
Reaction score
4,265
Location
Brooklyn, NY
OK - I lied (about it working and about me taking a break. I just hate to lose to a computer LOL). I don't know why it worked "some" last night. I glanced and saw a few jpgs in the Alerts\ALPR folder when nothing had been there before. But then I realized last night was work night at the club so there was 20-30 cars/truck pulling in and out between 4:00pm and 9:00pm and there were only 3 jpgs in the folder. And now this morning there's been a few cars in and out an nothing. Running the deepstackalpr.exe manually I see there is a permissions error.

View attachment 119136

Attached is the log file from the Alerts/ALPR/20220216/ folder. It appeared to write a couple of files to that folder today instead of creating a new 20220217 folder.

View attachment 119139

Last question - Any reason you can think of that Deepstack would pick up the first 2 licenses plates and not the 3rd?

View attachment 119140
View attachment 119141
View attachment 119142
The error I am see has to do with rights to the car.jpg file, try deleting the file. DeepStackALPR will recreate the file when there is a new plate identified.
The program I use to create the install package is adding read only rights to the folder where the files are, I might need to do away with the install package and just have a zip file
 

johnstjs

Getting the hang of it
Joined
Dec 7, 2020
Messages
74
Reaction score
36
Location
08070
The error I am see has to do with rights to the car.jpg file, try deleting the file. DeepStackALPR will recreate the file when there is a new plate identified.
The program I use to create the install package is adding read only rights to the folder where the files are, I might need to do away with the install package and just have a zip file
I deleted and rebooted the machine. Thursday is usually a little slow down there during the day so it may take a while for a car to drive thru. After one does, I'll check for the file. If it's there, I'll stop the service and start the API manually again and wait for another car
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
748
Reaction score
704
Once you get some plates would you be willing to share the below files so I can retrain the model.
So I was able to dial this in a little tighter and it seems to be working well in the daylight. I’ll let you know later how it goes at night.

File_000.png
 
Last edited:

johnstjs

Getting the hang of it
Joined
Dec 7, 2020
Messages
74
Reaction score
36
Location
08070
I deleted and rebooted the machine. Thursday is usually a little slow down there during the day so it may take a while for a car to drive thru. After one does, I'll check for the file. If it's there, I'll stop the service and start the API manually again and wait for another car
Still getting the permission denied error
 
Top