Blue Iris and CodeProject.AI ALPR

with only 12 + post-trigger images I seem to be missing vehicles, especially if they are driving fast. I've increased the +post trigger images to 40 with 50ms.
Or should I increase the analyze to 100ms?
Also added+ pre-trigger images to 10.
 
with only 12 + post-trigger images I seem to be missing vehicles, especially if they are driving fast. I've increased the +post trigger images to 40 with 50ms.
Or should I increase the analyze to 100ms?
Also added+ pre-trigger images to 10.

How long is your system taking to process the 50 images you're sending to CPAI?

As Actran pointed out to me, if the AI is taking too long to process, you may be losing frames in the processing pipeline. The BI manual actually covers this; I bumped up my pre-trigger record time and found things were more reliable.


If you step through individual frames of a capture for a car moving by quickly you'll be able to get an idea of how far a car can move in X amount of time. 40 post trigger images 50msec apart is 2 seconds, so 20fps that you are processing. I think it would be reasonable to increase the spacing to 100ms and lowering to 20 images.

Make sure to save the AI analysis and load them up in the AI tab of BI status to see how the analysis is going.
 
  • Like
Reactions: actran
How long is your system taking to process the 50 images you're sending to CPAI?

As Actran pointed out to me, if the AI is taking too long to process, you may be losing frames in the processing pipeline. The BI manual actually covers this; I bumped up my pre-trigger record time and found things were more reliable.


If you step through individual frames of a capture for a car moving by quickly you'll be able to get an idea of how far a car can move in X amount of time. 40 post trigger images 50msec apart is 2 seconds, so 20fps that you are processing. I think it would be reasonable to increase the spacing to 100ms and lowering to 20 images.

Make sure to save the AI analysis and load them up in the AI tab of BI status to see how the analysis is going.
Untitled.png

This is my AI detection rate. Trying 10 pre record triggers and 20 post trigger records at 50ms. Found out I was BL set the camera to 60 FPS when camera was running 50 FPS. Will see if it fixes it?
A car passing takes about 1 second...
It says 7seconds to process.
 
Seems to be working better however I noticed one vehicle slip pass when the AI was doing a detection. Can it only run one at a time? Another car came through just as it was finishing the AI detection and the AI missed it. It seems if something else triggers the camera trigger then it will miss the vehicle...

I think this has to do with the break time.
It was
end trigger unless re-triggered within 5.0 sec
maximum trigger/alert duration 20 sec.

I've modified it to
end trigger unless re-triggered within 1.0 sec
maximum trigger/alert duration 2 sec.

Would that fix it?
 
Last edited:
Any suggestions to improve OCR accuracy?

Using a HFW5241E-Z12E at maximum zoom. Height is approximately 11’ (used an existing hole from previous owner) and distance is approximately 140’.

The plate reads 15B KGZ but OCR reads 1583 KGZ.

BI 5.8.4.5 and CPAI 2.6.2.0 and LPR module 3.1.0

IMG_0372.jpeg
 
I am having an issue with my alert to my API. I am trying to use &PLATE but it's not passing through anymore. I know the plate data is there as I get Alert_AI":"YA23XDR:98%" when I use "Alert_AI":"&MEMO"

Anyone know why &PLATE is no longer working?
 
I am having an issue with my alert to my API. I am trying to use &PLATE but it's not passing through anymore. I know the plate data is there as I get Alert_AI":"YA23XDR:98%" when I use "Alert_AI":"&MEMO"

Anyone know why &PLATE is no longer working?
I'm using &Plate in an MQTT topic and it's still working for me using the following string:

{ "plate":"&PLATE", "AlertImgPath":"&ALERT_PATH", "Alert_AI":"&MEMO", "Date":"%Y-%m-%d %H:%M:%S","Camera":"&CAM"}
 
  • Like
Reactions: actran and Skinny1
Ran into this on a fresh install:
AttributeError: 'ALPR_adapter' object has no attribute '_num_items_found'

Any ideas on this? Have rebooted but no impact. Still getting this error.
 
Last edited: