Blue Iris and DeepStack ALPR

Lieberkind

Young grasshopper
Joined
Dec 16, 2021
Messages
68
Reaction score
19
Location
Denmark

Attachments

Last edited:

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
558
Reaction score
970
Location
Brooklyn, NY
same settings.

just went down the driveway and got these files. and a DAT file in same folder as image and a JSON file in ALPR folder.

It looks like it is working now, just not reading the plate correct.

I am very happy for your help with this.
Make sure you set the below to Hi-res JPEG files on both cameras. I need to add this to the instructions. Also the ALPR camera should be a zoomed in image of the plate this should help the OCR image_x and image_y setting will do this.

1641833597259.png

1641833337025.png
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
558
Reaction score
970
Location
Brooklyn, NY
same settings.

just went down the driveway and got these files. and a DAT file in same folder as image and a JSON file in ALPR folder.

It looks like it is working now, just not reading the plate correct.

I am very happy for your help with this.
One last thing attach the jpeg file that is in the www/ALPR folder, this will show if you have the X and Y settings correct.
 

Lieberkind

Young grasshopper
Joined
Dec 16, 2021
Messages
68
Reaction score
19
Location
Denmark
Make sure you set the below to Hi-res JPEG files on both cameras. I need to add this to the instructions. Also the ALPR camera should be a zoomed in image of the plate this should help the OCR image_x and image_y setting will do this.

View attachment 115125

View attachment 115124
My ALPR camera was on "database only" now it is changed. Now I wait for a plate to capture.
 

Lieberkind

Young grasshopper
Joined
Dec 16, 2021
Messages
68
Reaction score
19
Location
Denmark
How off is the recognizing the digits on the plates.
I think you can see it by yourself in #62

This is the corrosponding JSON file

{
"success": true,
"predictions": [
{
"confidence": 0.5094769,
"label": "9",
"y_min": 43,
"x_min": 141,
"y_max": 70,
"x_max": 156
},
{
"confidence": 0.58361495,
"label": "l",
"y_min": 45,
"x_min": 19,
"y_max": 79,
"x_max": 29
},
{
"confidence": 0.7180156,
"label": "5",
"y_min": 47,
"x_min": 30,
"y_max": 75,
"x_max": 44
},
{
"confidence": 0.85173076,
"label": "u",
"y_min": 46,
"x_min": 48,
"y_max": 74,
"x_max": 63
},
{
"confidence": 0.8947613,
"label": "9",
"y_min": 46,
"x_min": 109,
"y_max": 71,
"x_max": 123
},
{
"confidence": 0.8973325,
"label": "3",
"y_min": 45,
"x_min": 70,
"y_max": 73,
"x_max": 84
},
{
"confidence": 0.94716,
"label": "6",
"y_min": 43,
"x_min": 125,
"y_max": 70,
"x_max": 139
},
{
"confidence": 0.9504817,
"label": "3",
"y_min": 46,
"x_min": 88,
"y_max": 73,
"x_max": 101
}
],
"duration": 0
}
 

dimammx

Getting the hang of it
Joined
Apr 9, 2015
Messages
71
Reaction score
35
@MikeLud1 Really nice work on the integration. I had a similar idea to use deepstack license plate and some OCR model , but to avoid BI since it is not very convenient to lookup license plates history, and sometimes not very reliable.
Any idea how hard would it be to use this integration to push data to other system perhaps something custom made? And use something else to feed images to it.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
558
Reaction score
970
Location
Brooklyn, NY
@MikeLud1 Really nice work on the integration. I had a similar idea to use deepstack license plate and some OCR model , but to avoid BI since it is not very convenient to lookup license plates history, and sometimes not very reliable.
Any idea how hard would it be to use this integration to push data to other system perhaps something custom made? And use something else to feed images to it.
I am thinking of something in the future. For now you can open the log file in Excel.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
558
Reaction score
970
Location
Brooklyn, NY
I think I fixed the below issue. I am going to test the fix overnight. If it works I will issue Version 2.2. If you are on version 2.1 no need to redo everything just replace "DeepStackALPR.exe" file.

1641865587684.png
 

Lieberkind

Young grasshopper
Joined
Dec 16, 2021
Messages
68
Reaction score
19
Location
Denmark
Have some updated images and log files. Some af the cropped snapshots doesn't show the whole plate.

The logfile.txt and other files are located in the folder from 2022-01-10. No new folder from ALPR camera today.

Just an update. :)
 

Attachments

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
558
Reaction score
970
Location
Brooklyn, NY
Have some updated images and log files. Some af the cropped snapshots doesn't show the whole plate.

The logfile.txt and other files are located in the folder from 2022-01-10. No new folder from ALPR camera today.

Just an update. :)
Try the below setting this will increase the cropped plate size and help get the whole plate.

; Blue Iris short name for cropped licence plate camera and resolution settings
camera = ALPR
image_x = 213
image_y = 130
 

johnstjs

Young grasshopper
Joined
Dec 7, 2020
Messages
45
Reaction score
16
Location
08070
I am loving this thread. Thanks Mike. I spent about an hour or so yesterday and it never worked, but I believe the issue is on my configuration. The snapshots that are going into the alert folders are "off time" (a car triggers it, but the jpg that gets saved is eitehr before or after the license plate is out of range). I don't have time to look into it for a while (and this is definately not a mission critical issue for me). I would post my settings, but I uninstalled the ALPR completely for now. The python script in it was causing slightly higher CPU usage than I am comfortable with until I have time to look at it some more. Thanks for everything you're doing Mike!!!!!!!!
 

wittaj

Known around here
Joined
Apr 28, 2019
Messages
8,382
Reaction score
13,867
Location
USA
Try turning off the use mainstream and in the BI camera status page, what is the KEY value?
 
Top