CodeProject.AI Version 2.0

sp3ctre

Getting the hang of it
Joined
Sep 29, 2018
Messages
53
Reaction score
28
Location
UK
What's the best settings? Can anyone share that here. I'm mainly talking about in the camera AI section for what I need to place. For reference I'm running an i5-6500 with the igpu

Also, does my lpr camera have to be recording to work with lpr?
I have the same CPU with the Intel 530 graphics.... should GPU be set to on or off for this chip?
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,209
Reaction score
1,476
Location
USA
I have the same CPU with the Intel 530 graphics.... should GPU be set to on or off for this chip?
I myself would not use the 530 in GPU mode. It really struggled on mine and I have much better results using the CPU.

Screenshot 2023-01-26 144727.png
 

truglo

Pulling my weight
Joined
Jun 28, 2017
Messages
275
Reaction score
103
Hmm I thought GPU was just for cuda, not intel... but idk. Before I had a gpu I ran cpai with cpu, and it was decent (not too hard on the cpu, make times ~3x longer than with cuda... 200msec which is OK for most small/medium homes I think).
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
740
Reaction score
693
So I've spent the last few days dialing in the AI settings for BI (5.6.9.2) and CPAI (2.0.6) and everything seems to be working well so I thought I would share my settings. First let me explain how my system is configured. I'm currently running 17 cameras (plus 3 cloned cameras) on an i7-4790, CPAI is enabled on all my cameras. The cameras are on various schedules so not all of them are running all the time, but typically there are 10-12 cameras enabled. My main BI computer supports intel GPU, but does not have an additional NVIDIA graphics card. I also have an i7-6700T that I have CPAI running on to help balance the CPU load. I have CPAI configured with GPU enabled on my main BI machine to handle only the motion detection from my LPR camera. The motion detection from all my other cameras is handled by the other PC running CPAI in CPU only mode.

Here's some screenshots of my configurations.

Screen Shot 2023-01-26 at 1.11.11 PM.png Screen Shot 2023-01-26 at 1.15.37 PM.png Screen Shot 2023-01-26 at 1.19.11 PM.png Screen Shot 2023-01-26 at 1.17.30 PM.png Screen Shot 2023-01-26 at 1.18.07 PM.png

Note: BI and CPAI for my LPR camera are on 192.168.86.58 and all the other cameras are using CPAI on 192.168.86.57

And the results

Screen Shot 2023-01-26 at 1.21.28 PM.png
 

gwithers

Getting the hang of it
Joined
May 18, 2016
Messages
49
Reaction score
38
BI 5.6.9.3 AI stills works normally on my setup. Still finding objects with the same expect times (~150-200 ms). Not sure what is going on but it apparently isn't just 5.6.9.3 itself but related to BI/CPAI installation topography in some fashion as well. I'm not running any CPAI locally on my BI instance, so I don't have any of the "auto start/stop", stuff selected either. Here is what I have that is working. I run two CPAI instances in docker containers on two VM's.

1674781075175.png
 

Attachments

harleyl7

Pulling my weight
Joined
Jun 4, 2021
Messages
260
Reaction score
223
So I've spent the last few days dialing in the AI settings for BI (5.6.9.2), and CPAI (2.0.6) and everything seems to be working well so I thought I would share my settings. First let me explain how my system is configured. I'm currently running 17 cameras (plus 3 cloned cameras) on an i7-4790, CPAI is enabled on all my cameras. The cameras are on various schedules so not all of them are running all the time, but typically there are 10-12 cameras enabled. My main BI computer supports intel GPU, but does not have an additional NVIDIA graphics card. I also have an i7-6700T that I have CPAI running on to help balance the CPU load. I have CPAI configured with GPU enabled on my main BI machine to handle only the motion detection from my LPR camera. The motion detection from all my other cameras is handled by the other PC running CPAI in CPU only mode.

Here's some screenshots of my configurations.

View attachment 152028 View attachment 152029 View attachment 152033 View attachment 152030 View attachment 152035

Note: BI and CPAI for my LPR camera are on 192.168.86.58 and all the other cameras are using CPAI on 192.168.86.57

And the results

View attachment 152031
Thanks for this! I just put my 5 cameras on my CPAI running in docker on my unraid server and left my main BI/CPAI for my LPR. We will see how it goes.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,205
Reaction score
4,244
Location
Brooklyn, NY
I just started a new thread for all topic CodeProject.AI ALPR below is the link

 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,859
Reaction score
48,478
Location
USA
So I decided to test out CodeProject on my non BI server, so all I did was download the latest CodeProject file and installed it. It is not connected to BI.

Initially it works and I put in the image and it detects the plate, etc. and then after a couple of minutes it is throwing me constant "server connection error is the server URL correct"

It is at and I also tried 127.0.0.1:32168 and rebooted and same issue?

But on the dashboard it shows the server is active?
 
Last edited:

ohlin5

n3wb
Joined
Dec 14, 2016
Messages
25
Reaction score
10
Is there any way to get the yolov5l model working again? I don't know why, but the built-in models (I've tried ipcam-combined and ipcam-general) constantly recognize my dogs as people with 70-75+% confidence whereas prior to upgrade the yolov5l model worked really well. But after updating to BI 5.6.9.2/3 having the yolov5l.pt file in C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\custom-models causes the BI "Use custom models:" box to just be blank. No amount of stopping/restarting/etc. seems to fix it. Even if I remove all other files from the custom-models directory it still refuses to load it. The only models I can get loaded are the built-in ones, when they're the ONLY files in that directory. What am I missing here?
 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,209
Reaction score
1,476
Location
USA
So I decided to test out CodeProject on my non BI server, so all I did was download the latest CodeProject file and installed it. It is not connected to BI.

Initially it works and I put in the image and it detects the plate, etc. and then after a couple of minutes it is throwing me constant "server connection error is the server URL correct"

It is at and I also tried 127.0.0.1:32168 and rebooted and same issue?

But on the dashboard it shows the server is active?
Did you put in an address in the dashboard of one of your cameras ? And the set that cam to use that AI in it's settings? Look above how Vettester does his remote AI.
 

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,205
Reaction score
4,244
Location
Brooklyn, NY
Is there any way to get the yolov5l model working again? I don't know why, but the built-in models (I've tried ipcam-combined and ipcam-general) constantly recognize my dogs as people with 70-75+% confidence whereas prior to upgrade the yolov5l model worked really well. But after updating to BI 5.6.9.2/3 having the yolov5l.pt file in C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\custom-models causes the BI "Use custom models:" box to just be blank. No amount of stopping/restarting/etc. seems to fix it. Even if I remove all other files from the custom-models directory it still refuses to load it. The only models I can get loaded are the built-in ones, when they're the ONLY files in that directory. What am I missing here?
You can enable the default model to use the large yolov5 model
1674831723124.png
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,859
Reaction score
48,478
Location
USA
Did you put in an address in the dashboard of one of your cameras ? And the set that cam to use that AI in it's settings? Look above how Vettester does his remote AI.
I don't have any cameras connected to it at the moment, nor is BI connected to it. I am simply testing CodeProject by itself with no connection to anything, so different than Vettster as he has BI on one computer and AI on another. That is not what I am doing at the moment.

I am just trying out the upload image to use to test/detect feature of things or plates.

It works for the first minute or so after I install it and then after that is keeps throwing that error in the log and says server timed out, even though it shows it is active and the response times before it went wonky were fine.

I am trying this feature locally (taken from one of Mike's posts, but using my photo instead) and mine shows API server online just like this, but in the log it keeps throwing that error):

1674832268155.png
 
Last edited:

ohlin5

n3wb
Joined
Dec 14, 2016
Messages
25
Reaction score
10
You can enable the default model to use the large yolov5 model
View attachment 152108
Ok...if I do that do I need to mess with the files in C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\custom-models at all? Previously if I remember correctly I had to add the yolov5l.pt file here and then specify that custom model in each of my camera's AI trigger settings box...but post upgrade that yolov5l.pt file is no longer present in C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\custom-models.
 
Top