Blue Iris and CodeProject.AI ALPR

AlwaysSomething

Pulling my weight
Joined
Apr 24, 2023
Messages
133
Reaction score
105
Location
US
A lot has changed since the first post with the installation steps. I tried skimming through the posts late at night and I think I missed something. I'm not seeing plates in the logs and ultimately I'd like to get the zoomed in plates in the alerts list like I saw in some of the pictures.

Does anyone have a "new/updated" set of instructions for setting up the ALPR? Even if it was cliff notes for yourself?

It took me a LONG time to read everything and most was about Cuda issues which I'm not using (I'm trying to use CPU).

If I have to reread I will but was hoping I wouldn't. :(

Thanks in advance.
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
26,828
Reaction score
52,317
Location
USA
A lot has changed since the first post with the installation steps. I tried skimming through the posts late at night and I think I missed something. I'm not seeing plates in the logs and ultimately I'd like to get the zoomed in plates in the alerts list like I saw in some of the pictures.

Does anyone have a "new/updated" set of instructions for setting up the ALPR? Even if it was cliff notes for yourself?

It took me a LONG time to read everything and most was about Cuda issues which I'm not using (I'm trying to use CPU).

If I have to reread I will but was hoping I wouldn't. :(

Thanks in advance.
I used this thread when I set up my CodeProject and ALPR and what not worked from it. Probably a lot of the same as this thread, but probably a few differences that make or break it.

 

AlwaysSomething

Pulling my weight
Joined
Apr 24, 2023
Messages
133
Reaction score
105
Location
US
I used this thread when I set up my CodeProject and ALPR and what not worked from it. Probably a lot of the same as this thread, but probably a few differences that make or break it.

Many thanks!!!

I read through that thread and made some progress. I'm getting some LPs in the log. I also need to reconfigure ALL the non LPR cameras since they are trying to use the LPR but I saw the fix for that so made a note and just need to implement that. Speaking of that, any quick/cheat/hack way to change multiple cameras configs at once? This where I mess up or miss a camera when I have to click through the cameras and buttons. LOL

So last thing.... maybe I'm losing my mind but I thought there was a way to have the zoomed in/cropped license plate so it would show up in the alert logs in BI? Does that exist or was I day dreaming? Or was that something custom on top/separate of the LPR?
 

AlwaysSomething

Pulling my weight
Joined
Apr 24, 2023
Messages
133
Reaction score
105
Location
US
One more question. If I have 2 cars in a single image is there a way to show both plates in BI? The logs from CPAI show both plates in the single log entry. For example, there are 2 cars in my driveway and it is only showing the LP for one of them in BI. In CPAI it shows both plates.
 

carteriii

Pulling my weight
Joined
Jan 8, 2016
Messages
157
Reaction score
162
Location
USA
I thought there was a way to have the zoomed in/cropped license plate so it would show up in the alert logs in BI? Does that exist or was I day dreaming? Or was that something custom on top/separate of the LPR?
I believe you're referring simply to the AI config setting of "Zoom-in to objects":alpr-zoom-in.jpg
 

Russship

n3wb
Joined
Apr 22, 2023
Messages
4
Reaction score
0
Location
New Mexico
Can someone help me understand why AI stops checking for a plate?
After it stops looking it reports that it seen a plate and was 98% sure but did not mark it as an alert.Screenshot 2024-08-23 152259.pngScreenshot 2024-08-23 155101.pngScreenshot 2024-08-23 160906.pngScreenshot 2024-08-23 160929.png
 

Russship

n3wb
Joined
Apr 22, 2023
Messages
4
Reaction score
0
Location
New Mexico
Thank you, I made those changes I will check in the morning and see if that worked.
I see there is a way to add "pre-triggers images" but is there a way to ignore post-trigger images?
As a car comes into the picture the first 4ish images are of the front of the car, and it is not until the whole car has come into the picture before the plate is visible to analyze. In the state I live we do not have plates in the front only in the rear, so i would like to start sending images after the first few.
 

Russship

n3wb
Joined
Apr 22, 2023
Messages
4
Reaction score
0
Location
New Mexico
Thank you, I made those changes I will check in the morning and see if that worked.
I see there is a way to add "pre-triggers images" but is there a way to ignore post-trigger images?
As a car comes into the picture the first 4ish images are of the front of the car, and it is not until the whole car has come into the picture before the plate is visible to analyze. In the state I live we do not have plates in the front only in the rear, so i would like to start sending images after the first few.
It is still not checking all the images. In this one it did get a plate on the 7th image but on the 11th image it got a better % of the plate. But it looks like it stopped after the 10th.
Screenshot 2024-08-24 085958.pngScreenshot 2024-08-24 090329.png
 
Joined
Oct 16, 2018
Messages
1,773
Reaction score
5,857
Location
Florida, USA
@MikeLud1 - I upgraded BI to 5.9.5.4 from 5.9.5.3 and CA to 2.6.5 from 2.6.2.

I am not getting any ALPR or Object detection from Yolov5.net.


CodeProject.AI
Docs
Forums
The Code
CodeProject.AI Explorer
DESKTOP-A3S8AMN
Online
2.6.5
??
Your self-contained AI server. Need help? Common solutions or ask a Question. Use in your apps: API guide or add your own AI module. FAQs: Blue Iris, Home Assistant, Agent DVR, Wyze cams.
Status
Server logs
System Info
Mesh
Install Modules
Server version: 2.6.5
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz (Intel)
1 CPU x 8 cores. 16 logical processors (x64)
GPU (Primary): NVIDIA GeForce RTX 2060 (6 GiB) (NVIDIA)
Driver: 551.68, CUDA: 11.7.64 (up to: 12.4), Compute: 7.5, cuDNN: 8.5
System RAM: 16 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.5
.NET SDK: Not found
Default Python: Not found
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
NVIDIA GeForce RTX 2060:
Driver Version 31.0.15.5168
Video Processor NVIDIA GeForce RTX 2060
System GPU info:
GPU 3D Usage 24%
GPU RAM Usage 675 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168

Below is pertinent snippets of the server log:

1 file(s) copied.
15:00:43:ALPR: Current version is 0. Installing newer version.
15:00:43:ALPR: The system cannot execute the specified program.
15:00:43:Server: This is the latest version









15:04:17:ALPR: Traceback (most recent call last):
15:04:17:ALPR: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 11, in
15:04:17:ALPR: from ALPR import init_detect_platenumber, detect_platenumber
15:04:17:ALPR: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR.py", line 7, in
15:04:17:ALPR: import utils.tools as tool
15:04:17:ALPR: ModuleNotFoundError: No module named 'utils.tools'
15:04:17:ALPR: Self test: Self-test passed




:04:47:ObjectDetectionYOLOv5Net: App: C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5Net\bin\ObjectDetectionYOLOv5Net.exe
15:04:47:ObjectDetectionYOLOv5Net: Architecture: x64
15:04:47:ObjectDetectionYOLOv5Net: Framework: 'Microsoft.NETCore.App', version '8.0.0' (x64)
15:04:47:ObjectDetectionYOLOv5Net: .NET location: C:\Program Files\dotnet\
15:04:47:ObjectDetectionYOLOv5Net: The following frameworks were found:
15:04:47:ObjectDetectionYOLOv5Net: 6.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
15:04:47:ObjectDetectionYOLOv5Net: 6.0.14 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
15:04:47:ObjectDetectionYOLOv5Net: 6.0.20 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
15:04:47:ObjectDetectionYOLOv5Net: 6.0.26 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
15:04:47:ObjectDetectionYOLOv5Net: 6.0.28 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
15:04:47:ObjectDetectionYOLOv5Net: 7.0.5 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
15:04:47:ObjectDetectionYOLOv5Net: Learn about framework resolution:
15:04:47:ObjectDetectionYOLOv5Net: Troubleshoot app launch failures - .NET
15:04:47:ObjectDetectionYOLOv5Net: To install missing framework, download:
15:04:47:ObjectDetectionYOLOv5Net: Download .NET 8.0 Runtime
15:04:47:ObjectDetectionYOLOv5Net: Self test: Self-test passed
15:04:47:ObjectDetectionYOLOv5Net: Module setup time 00:00:27.99
15:04:47:ObjectDetectionYOLOv5Net: Setup complete
15:04:47:ObjectDetectionYOLOv5Net: Total setup time 00:00:29.07
15:04:47:Module ObjectDetectionYOLOv5Net insta
 
Last edited:

wpiman

Getting comfortable
Joined
Jul 16, 2018
Messages
340
Reaction score
256
Location
massachusetts
It has been a while since I've looked at this.. but doesn't it stop at some point if it got the plate?
 

trapper

Getting comfortable
Joined
Feb 11, 2017
Messages
257
Reaction score
269
i am in the same boat as JNPATHP messages are all modules failed to start. ALPR- adapter.py module not found error No module named code project-ai-sdk. module ALPR has shut down
 

trapper

Getting comfortable
Joined
Feb 11, 2017
Messages
257
Reaction score
269
I just uninstalled all code project from computer reinstalled latest 5.9.2 and my issue was resolved. The code project forum site stated similar issues and they released a fix earlier today. don't know what the fix was but I am up and running for now. also I did not down load code project from the blue iris ai , I went directly to the code projects page and downloaded from there
 

Bruce_H

Young grasshopper
Joined
Feb 22, 2017
Messages
66
Reaction score
19
I just uninstalled all code project from computer reinstalled latest 5.9.2 and my issue was resolved. The code project forum site stated similar issues and they released a fix earlier today. don't know what the fix was but I am up and running for now. also I did not down load code project from the blue iris ai , I went directly to the code projects page and downloaded from there
I looked on the Code Project web site and could find no mention of a version 5.9.2' even did a search of the discussion forum and found no mention of version 5.9.2! The newest version I found was 2.8.0; perhaps you could post the link?
 

trapper

Getting comfortable
Joined
Feb 11, 2017
Messages
257
Reaction score
269
yes sorry for the confusion I believe the latest version of code project is 2.6.5
 

BKG

Young grasshopper
Joined
Feb 3, 2019
Messages
37
Reaction score
5
Location
Canada
Hi @MikeLud1 , I have a specific case where I want to read numbers from the display and add them to the alert list just like LPR. I use ALPR in BI and it is reading the license plates with success. I tried to use ALPR for my use case and it is not working though it should read the numbers. CPAI has a module called OCR. That module does the job. Is there any way I can setup OCR in CPAI to do what I am looking for with BI? Attached are examples of what I have. Thanks.
 

Attachments

Top