CodeProject.ai with License Plate Reader module - HowTo?

jeremycolvin

Getting the hang of it
Jul 23, 2023
115
70
I think I've installed everything correctly, my camera's are set up to get great images of license plates in day and night... but I have no idea where to get the list of what plates it's captured or to see if it's working correctly. I MUST be missing a step.

When I used platerecognizer.com - I got a list of all the plates it captured. I'm trying to switch from using that to using codeProject.ai / license plate reader - or to use some kind of combination so that only 1 good image per plate gets sent to platerecognizer... or something... bottom line, I need a list of plates it finds, hopefully with a picture of the plate. Hoping you guys can figure out what I'm missing here... Please help! :)

Examples of the plates I'm capturing:

Day-Plate.jpg

Night-Plate.jpg

I have Blue Iris installed and working well.

I have installed CodeProject.AI

I have added "License Plate Reader" to CodeProject.ai

codeproject-ai-status.png

It appears as though it is working looking at the CodeProject.ai logs:

codeproject-ai-Logs.png

I have configured BlueIris main setup AI tab to use AI Server / Code Project:

I have configured my LPR camera AI for code project (I think)

Blue-Iris-Camera-AI.png
 
Last edited:
@jeremycolvin Assuming you are on a recent release of BI5 and CP.AI, for first screen, turn off "Default object detection" and turn ON "ALPR for Plates"

For 2nd screen, this worked for me:
e:alpr.png
 
Last edited:
  • Like
Reactions: jeremycolvin
I think I've installed everything correctly, my camera's are set up to get great images of license plates in day and night... but I have no idea where to get the list of what plates it's captured or to see if it's working correctly. I MUST be missing a step.

When I used platerecognizer.com - I got a list of all the plates it captured. I'm trying to switch from using that to using codeProject.ai / license plate reader - or to use some kind of combination so that only 1 good image per plate gets sent to platerecognizer... or something... bottom line, I need a list of plates it finds, hopefully with a picture of the plate. Hoping you guys can figure out what I'm missing here... Please help! :)

Examples of the plates I'm capturing:

View attachment 169678

View attachment 169679

I have Blue Iris installed and working well.

I have installed CodeProject.AI

I have added "License Plate Reader" to CodeProject.ai

View attachment 169673

It appears as though it is working looking at the CodeProject.ai logs:

View attachment 169674

I have configured BlueIris main setup AI tab to use AI Server / Code Project:

View attachment 169672

I have configured my LPR camera AI for code project (I think)

View attachment 169675
You need to checkoff ALPR for plates and use the below camera settings
1691630549442.png
1691630645572.png
 
ok... I don't think that worked... I changed my settings to:
Settings.png

Then drove both directions.... here are the logs:

level time object message
3 8/9/2023 9:52:21.158 PM License-Right-21 MOTION_A
0 8/9/2023 9:52:25.455 PM License-Right-21 AI: Alert canceled [nothing found] 165ms
3 8/9/2023 9:53:45.244 PM License-Right-21 MOTION_A
0 8/9/2023 9:53:49.614 PM License-Right-21 AI: Alert canceled [nothing found] 201ms
3 8/9/2023 9:53:53.802 PM License-Left-22 MOTION_A
0 8/9/2023 9:53:58.168 PM License-Left-22 AI: Alert canceled [nothing found] 225ms
0 8/9/2023 9:54:07.005 PM License-Left-22 AI: Alert canceled [nothing found] 207ms
3 8/9/2023 9:54:25.410 PM License-Left-22 MOTION_A
0 8/9/2023 9:54:29.886 PM License-Left-22 AI: Alert canceled [nothing found] 339ms
3 8/9/2023 9:54:30.173 PM License-Right-21 MOTION_A
0 8/9/2023 9:54:34.670 PM License-Right-21 AI: Alert canceled [nothing found] 304ms
3 8/9/2023 9:55:14.315 PM License-Right-21 MOTION_A
0 8/9/2023 9:55:19.356 PM License-Right-21 AI: Alert canceled [nothing found] 870ms
3 8/9/2023 9:55:31.751 PM License-Right-21 MOTION_A
0 8/9/2023 9:55:36.109 PM License-Right-21 AI: Alert canceled [nothing found] 199ms

And when I look back through the video... here is a clip from each direction:

Left:
MyLicLeft.png

Right:
MyLicRight.png

Ideas / thoughts @MikeLud1 , @actran , or anyone else? Thank you for your help!
 
ok... I don't think that worked... I changed my settings to:
View attachment 169695

Then drove both directions.... here are the logs:

level time object message
3 8/9/2023 9:52:21.158 PM License-Right-21 MOTION_A
0 8/9/2023 9:52:25.455 PM License-Right-21 AI: Alert canceled [nothing found] 165ms
3 8/9/2023 9:53:45.244 PM License-Right-21 MOTION_A
0 8/9/2023 9:53:49.614 PM License-Right-21 AI: Alert canceled [nothing found] 201ms
3 8/9/2023 9:53:53.802 PM License-Left-22 MOTION_A
0 8/9/2023 9:53:58.168 PM License-Left-22 AI: Alert canceled [nothing found] 225ms
0 8/9/2023 9:54:07.005 PM License-Left-22 AI: Alert canceled [nothing found] 207ms
3 8/9/2023 9:54:25.410 PM License-Left-22 MOTION_A
0 8/9/2023 9:54:29.886 PM License-Left-22 AI: Alert canceled [nothing found] 339ms
3 8/9/2023 9:54:30.173 PM License-Right-21 MOTION_A
0 8/9/2023 9:54:34.670 PM License-Right-21 AI: Alert canceled [nothing found] 304ms
3 8/9/2023 9:55:14.315 PM License-Right-21 MOTION_A
0 8/9/2023 9:55:19.356 PM License-Right-21 AI: Alert canceled [nothing found] 870ms
3 8/9/2023 9:55:31.751 PM License-Right-21 MOTION_A
0 8/9/2023 9:55:36.109 PM License-Right-21 AI: Alert canceled [nothing found] 199ms

And when I look back through the video... here is a clip from each direction:

Left:
View attachment 169696

Right:
View attachment 169697

Ideas / thoughts @MikeLud1 , @actran , or anyone else? Thank you for your help!
You need to uncheck Plate Recognizer

1691633645608.png
 
  • Like
Reactions: jeremycolvin
Also make sure your Main AI Settings are set like the below screenshot
View attachment 169701

Doesn't look like it worked....

Log:

level time object message
3 8/9/2023 10:27:06.720 PM License-Left-22 MOTION_A
0 8/9/2023 10:27:12.294 PM License-Left-22 AI: Alert canceled [nothing found] 203ms
3 8/9/2023 10:27:35.696 PM License-Left-22 MOTION_A
3 8/9/2023 10:27:40.312 PM License-Right-21 MOTION_A
0 8/9/2023 10:27:41.015 PM License-Left-22 AI: Alert canceled [nothing found] 196ms
0 8/9/2023 10:27:45.577 PM License-Right-21 AI: Alert canceled [nothing found] 163ms
3 8/9/2023 10:28:12.177 PM License-Right-21 MOTION_A
0 8/9/2023 10:28:17.479 PM License-Right-21 AI: Alert canceled [nothing found] 176ms
3 8/9/2023 10:28:31.159 PM License-Right-21 MOTION_A
0 8/9/2023 10:28:36.461 PM License-Right-21 AI: Alert canceled [nothing found] 180ms

Settings:
Settings2.png

Also, just fyi, I have tried with both "Use GPU" checked and unchecked. I have plenty of system resources (128 GB ram and a NVidia GeForce RTX 4090 GPU, so either using CPU or GPU should be fine. With 15 cameras my blue iris is using about 18-30% CPU and 7.4 G or memory.
 
@jeremycolvin

#1: What BI5 version? What CodeProject.AI version?

#2: In CodeProject.AI, click on Explorer, there is a Image tab for "License Plater Reader", upload an image and see if that works.

#3: In BI5, hold down Ctrl and double-click on a thumbnail on left. What do you see?
 
  • Like
Reactions: jeremycolvin
Doesn't look like it worked....

Log:

level time object message
3 8/9/2023 10:27:06.720 PM License-Left-22 MOTION_A
0 8/9/2023 10:27:12.294 PM License-Left-22 AI: Alert canceled [nothing found] 203ms
3 8/9/2023 10:27:35.696 PM License-Left-22 MOTION_A
3 8/9/2023 10:27:40.312 PM License-Right-21 MOTION_A
0 8/9/2023 10:27:41.015 PM License-Left-22 AI: Alert canceled [nothing found] 196ms
0 8/9/2023 10:27:45.577 PM License-Right-21 AI: Alert canceled [nothing found] 163ms
3 8/9/2023 10:28:12.177 PM License-Right-21 MOTION_A
0 8/9/2023 10:28:17.479 PM License-Right-21 AI: Alert canceled [nothing found] 176ms
3 8/9/2023 10:28:31.159 PM License-Right-21 MOTION_A
0 8/9/2023 10:28:36.461 PM License-Right-21 AI: Alert canceled [nothing found] 180ms

Settings:
View attachment 169702

Also, just fyi, I have tried with both "Use GPU" checked and unchecked. I have plenty of system resources (128 GB ram and a NVidia GeForce RTX 4090 GPU, so either using CPU or GPU should be fine. With 15 cameras my blue iris is using about 18-30% CPU and 7.4 G or memory.
Try testing the ALPR module like show below.
Also what CUDA version do you have installed? You should be using CUDA 11.8, not CUDA 12.x. FYI a 4090 was use in the below screenshot

1691635313238.png
 
@jeremycolvin

#1: What BI5 version? What CodeProject.AI version?

#2: In CodeProject.AI, click on Explorer, there is a Image tab for "License Plater Reader", upload an image and see if that works.

#3: In BI5, hold down Ctrl and double-click on a thumbnail on left. What do you see?

versions.png
 
@jeremycolvin Take your original image and crop it to smaller area around license plate. Upload modified image to the above manual test again.

BTW, you're on the latest BI5 and CP.AI so that should not be issue.
The image he tested should of worked. I think the issues he is having is because the wrong version CUDA is installed.