Blue Iris and CodeProject.AI ALPR

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.
 
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.

 
  • Like
Reactions: AlwaysSomething
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?
 
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.
 
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
 
  • Like
Reactions: AlwaysSomething
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
 
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.
 
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
 
@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:
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
 
  • Like
Reactions: JNDATHP
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 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?
 
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

  • LPR module.JPG
    LPR module.JPG
    121.8 KB · Views: 24
  • OCR module.JPG
    OCR module.JPG
    123 KB · Views: 24