Blue Iris and DeepStack ALPR

Well 3.0 seems to be working really good, have some trigger issues to figure out at night and a couple during the day large vehicles seem to get missed some times Fedex,ups trucks.
How would one set this up to do two cameras?
During the day I have my triggering by zone crossing, it works well for large vehicles.
I have to think about it on how to get two cameras working.

1644260891523.png
 
  • Like
Reactions: looney2ns
Well 3.0 seems to be working really good, have some trigger issues to figure out at night and a couple during the day large vehicles seem to get missed some times Fedex,ups trucks.
How would one set this up to do two cameras?
@rwclark73 for the second camera do only step 1 in the instructions. I tested it with a clone of my LPR and it looks to work. Both cameras will use the cropped camera to log the plate. Since I tested it with a clone I am not sure how it will work with two cameras. Please let me know how it works for you.

Thanks
Mike
 
  • Like
Reactions: looney2ns
Well, I could use some help.

1) To edit DS_ALPR_config.ini I must run notepad As Administrator. I did try stopping the DeepStackALPR service but still got this error:

E7AEA840-7BD3-4A86-B33B-CADC71163641.jpeg


2) The cloned camera that I created gives a 404 error:

C61E132C-8BE6-4477-88A0-9AD206E28CA2.jpeg

604BD66D-B7B9-4B8A-8616-7D3CB356F7E0.jpeg

58844EDD-B19B-4A5D-B0CA-592797657FF6.jpeg

976329E3-F665-4A1A-B9DD-BA8269F60960.jpeg

D7925C2F-B3EC-46AE-B604-5053A8B24E6B.jpeg

This is my DS_ALPR_config.ini file:

[shared]
; If Blue Iris and DeepStack is installed with default settings no changes needed, otherwise adjusted as needed
bi_server = 192.168.0.10:81
ds_server = 192.168.0.10:82
alpr_server_ip = 192.168.0.10
alpr_server_port = 5000

; Blue Iris userid and password is needed so script can communicate back to Blue Iris (must have admin rights)
userid = user
password = password

[ds_lpr]
; Blue Iris short name for cropped licence plate camera and resolution settings
camera = ALPR
image_x = 160
image_y = 120

; Use to rotate cropped licence plate, positive number for CCW or negative number for CW
rotate_deg = 0

; If cropped licence plate is rotated increase number by "1" until black corners are removed
image_offset = 0

; If Blue Iris is installed with default settings no changes needed, where script will save the cropped licence plate
cropped_directory = C:\Program Files\Blue Iris 5\www\ALPR

[ds_ocr]
; Where cropped camera's alert directory is
lpr_directory = D:\BlueIris\Alerts\ALPR\*

; Leave default setting of 4, how close the characters can be before the inferior one is ignored
overlapping_threshold = 4

; Leave default setting 0.40, if worst confidence is less than this, the result wont be written to output_logfile
min_conf_thres = 0.40

; Leave default setting of 2, if there is not more than this number of characters detected on the plate, the result wont be written to output_logfile
min_len_thres = 2

; Leave default setting of 8, if there is more character detected than this number, program will cut out the weakest confidence characters until value met.
plate_len_threshold = 8

; Leave default setting of 0.150 ms
path_delay = 0.150
 
Last edited:
Well, I could use some help.

1) To edit DS_ALPR_config.ini I must run notepad As Administrator. I did try stopping the DeepStackALPR service but still got this error:

View attachment 118470


2) When I restart the computer, the ALPR folder that I created under Alerts is deleted.

3) The cloned camera that I created gives a 404 error:

View attachment 118472

View attachment 118473

View attachment 118474

View attachment 118475

View attachment 118477

This is my DS_ALPR_config.ini file:

[shared]
; If Blue Iris and DeepStack is installed with default settings no changes needed, otherwise adjusted as needed
bi_server = 192.168.0.10:81
ds_server = 192.168.0.10:82
alpr_server_ip = 192.168.0.10
alpr_server_port = 5000

; Blue Iris userid and password is needed so script can communicate back to Blue Iris (must have admin rights)
userid = user
password = password

[ds_lpr]
; Blue Iris short name for cropped licence plate camera and resolution settings
camera = ALPR
image_x = 160
image_y = 120

; Use to rotate cropped licence plate, positive number for CCW or negative number for CW
rotate_deg = 0

; If cropped licence plate is rotated increase number by "1" until black corners are removed
image_offset = 0

; If Blue Iris is installed with default settings no changes needed, where script will save the cropped licence plate
cropped_directory = C:\Program Files\Blue Iris 5\www\ALPR

[ds_ocr]
; Where cropped camera's alert directory is
lpr_directory = D:\BlueIris\Alerts\ALPR\*

; Leave default setting of 4, how close the characters can be before the inferior one is ignored
overlapping_threshold = 4

; Leave default setting 0.40, if worst confidence is less than this, the result wont be written to output_logfile
min_conf_thres = 0.40

; Leave default setting of 2, if there is not more than this number of characters detected on the plate, the result wont be written to output_logfile
min_len_thres = 2

; Leave default setting of 8, if there is more character detected than this number, program will cut out the weakest confidence characters until value met.
plate_len_threshold = 8

; Leave default setting of 0.150 ms
path_delay = 0.150
Change the IP to 192.168.0.10:81 in the below tab, also you can delete the User and Password. The camera that show the cropped plate is not a clone and does not need any AI enabled. The AI is enabled in the camera that see the whole car.


1644634952970.png
 
I have a 5231. I’m sorry for being stupid, I really want to understand how to do this.

Do I use IVS in the camera? How does your program know that the camera alerted when I am using the Blue Iris IP address for viewing ui3 which is 192.168.0.10:81.
 
Do I use IVS in the camera?
No, the link below is how I have my 5241 trigger settings. How the DeepStackALPR API knows that camera is alerted is by the settings circled in red. Tomorrow I will try to post how the DeepStackALPR API works.

1644640390999.png1644640487508.png
 
Last edited:
  • Like
Reactions: looney2ns
Are the above screen shots from your camera with its IP Address?

I have two cameras created.

One is with the IP address of 192.168.0.216. This is the “physical” camera.

I then cloned this camera and changed the ip add to 192.168.0.10:81 and this camera has your custom ALPR model in it along with all of the settings in your documentation (step 3).
 
Are the above screen shots from your camera with its IP Address?

I have two cameras created.

One is with the IP address of 192.168.0.216. This is the “physical” camera.

I then cloned this camera and changed the ip add to 192.168.0.10:81 and this camera has your custom ALPR model in it along with all of the settings in your documentation (step 3).
Since you changed the IP of the cloned camera it is no longer a clone. If this camera is showing an image of the cropped license plate setup image then it is set correctly. Once you get the physical camera AI setup using the settings in the post that is in the below link the plates will start showing up where the setup image is.

Setup Image
1644642474775.png

After AI is setup in the physical camera and a license plate is detected in the physical camera you will see the setup image change to the cropped image of the license plate .
1644643112485.png
 
Last edited:
  • Like
Reactions: looney2ns
Thanks. I think I’m understanding it better.

The physical camera is where the custom model lives and does the triggering. The camera created in step 3 is looking at the ALPR alerts folder. Yes?
 
Thanks. I think I’m understanding it better.

The physical camera is where the custom model lives and does the triggering. The camera created in step 3 is looking at the ALPR alerts folder. Yes?
Correct, the camera created in Step 3 is only a static jpeg image of the cropped license plate when it is detected in the physical camera. If you need more help let me know.
 
  • Like
Reactions: looney2ns