Blue Iris and DeepStack ALPR

I am getting the alert in Blue Iris

View attachment 119326

But, I am not getting a cropped image in www/alerts/ALPR. This doesn‘t change.

View attachment 119327
I realize that the plate is too small to read, but shouldn’t ALPR.jpg change to the cropped plate?
The issue is because the car.jpg is not being read to create the cropped image. I am going see if I can fix the issue this weekend.
 
I reinstalled and checked everything, but something is still wrong.

I am getting car.jpg updated and am also getting the cropped ALPR.jpg. This was a permissions problem.

What is not happening is the log or JSON files being written to D:\BlueIris\Alerts\LPRCam\*

I am getting the .jpg and .dat files in D:\BlueIris\Alerts\LPRCam\*

Also, the alerts in BI are not being updated with the cropped plate or the OCR results.

I would really appreciate any help offered. Thanks.
 
@MikeLud1 - Please see below and let me know if I can make changes so that the unauthorized and other errors can be eliminated. Thanks.

192.168.0.10 - - [2022-03-03 14:10:00] No Char was found in image car.jpg
[2022-03-03 14:10:00,657] ERROR in app: Exception on /DeepStackALPR [POST]
Traceback (most recent call last):
File "flask\app.py", line 2073, in wsgi_app
File "flask\app.py", line 1518, in full_dispatch_request
File "flask\app.py", line 1516, in full_dispatch_request
File "flask\app.py", line 1502, in dispatch_request
File "DeepStackALPR.py", line 518, in ALPR
File "DeepStackALPR.py", line 413, in alpr
File "DeepStackALPR.py", line 393, in Send
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 525, in open
File "urllib\request.py", line 634, in http_response
File "urllib\request.py", line 563, in error
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 643, in http_error_default
urllib.error.HTTPError: HTTP Error 401: Unauthorized
192.168.0.10 - - [2022-03-03 14:10:00] "POST /DeepStackALPR HTTP/1.1" 500 426 0.120981
 
@MikeLud1 - Please see below and let me know if I can make changes so that the unauthorized and other errors can be eliminated. Thanks.

192.168.0.10 - - [2022-03-03 14:10:00] No Char was found in image car.jpg
[2022-03-03 14:10:00,657] ERROR in app: Exception on /DeepStackALPR [POST]
Traceback (most recent call last):
File "flask\app.py", line 2073, in wsgi_app
File "flask\app.py", line 1518, in full_dispatch_request
File "flask\app.py", line 1516, in full_dispatch_request
File "flask\app.py", line 1502, in dispatch_request
File "DeepStackALPR.py", line 518, in ALPR
File "DeepStackALPR.py", line 413, in alpr
File "DeepStackALPR.py", line 393, in Send
File "urllib\request.py", line 216, in urlopen
File "urllib\request.py", line 525, in open
File "urllib\request.py", line 634, in http_response
File "urllib\request.py", line 563, in error
File "urllib\request.py", line 496, in _call_chain
File "urllib\request.py", line 643, in http_error_default
urllib.error.HTTPError: HTTP Error 401: Unauthorized
192.168.0.10 - - [2022-03-03 14:10:00] "POST /DeepStackALPR HTTP/1.1" 500 426 0.120981
Post a screenshot of the AI settings and your DS_ALPR_config.ini file. I think you have something not set right.

I have been tied up with work and have not had time to release a new version. Hopefully work slows down and I have more time to work on DeepStackALPR and the Custom Modes
 
  • Like
Reactions: Flintstone61
Here is the ini. Which AI settings are you looking for?

[shared]
; If Blue Iris and DeepStack is installed with default settings no changes needed, otherwise adjusted as needed
bi_server = ds_server = 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 =
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
 
Here is the ini. Which AI settings are you looking for?

[shared]
; If Blue Iris and DeepStack is installed with default settings no changes needed, otherwise adjusted as needed
bi_server = ds_server = 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 =
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
The below screenshot
1646366039926.png
 
@MikeLud1 - Ok, still trying to get this working. Here is where I’m at.

The plate on a vehicle is recognized. The cropped plate is being saved and car.jpg is updating.

What is not working is that file path.txt is not updating.
 

Attachments

  • CCFA51C2-9631-4202-B3F6-15EECB6540D2.jpeg
    CCFA51C2-9631-4202-B3F6-15EECB6540D2.jpeg
    184.5 KB · Views: 24
  • 9D781336-C0FA-4FD9-BABB-9CBD42F6EDC3.jpeg
    9D781336-C0FA-4FD9-BABB-9CBD42F6EDC3.jpeg
    70 KB · Views: 25
  • 94FF7102-9D84-44DC-A8C9-71B8D089B2F0.jpeg
    94FF7102-9D84-44DC-A8C9-71B8D089B2F0.jpeg
    1.2 MB · Views: 23
@MikeLud1 - Ok, still trying to get this working. Here is where I’m at.

The plate on a vehicle is recognized. The cropped plate is being saved and car.jpg is updating.

What is not working is that file path.txt is not updating.
Try deleting the file, Blue Iris will recreate the file if you have the below setting in the cropped plate camera
1647299403664.png