CodeProject.AI Version 2.0

MikeLud1

IPCT Contributor
Joined
Apr 5, 2017
Messages
2,141
Reaction score
4,118
Location
Brooklyn, NY
CodeProject.AI version 2.0 was released Jan 16, 2023, this thread is for all topic CodeProject.AI version 2.0.


If you need any info on CodeProject.AI version 1.x please refer to the below link (there is some discussion on v2.0)
 
Last edited:

tech101

Known around here
Joined
Mar 30, 2015
Messages
1,472
Reaction score
2,125
Location
SF BayArea, USA
Thank you, will be following this just waiting to see all the bugs if any to be ironed out sounds like it’s almost there already.

Wanna make the switch from DS specifically since this also brings plate reading
 

IAmATeaf

Known around here
Joined
Jan 13, 2019
Messages
3,287
Reaction score
3,252
Location
United Kingdom
Would it be worthwhile adding important info to the start of this thread maybe else it’ll be a case of the same questions being asked and the reply being to go and look back through the other thread? Just a thought.
 

tedrpi

Getting the hang of it
Joined
Sep 2, 2015
Messages
84
Reaction score
36

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
24,430
Reaction score
47,552
Location
USA
Would it be worthwhile adding important info to the start of this thread maybe else it’ll be a case of the same questions being asked and the reply being to go and look back through the other thread? Just a thought.
You mean you don't want a post every other day asking what objects are in which models :lmao:

Or when Coral will be supported LOL
 
Last edited:
Joined
Jan 3, 2019
Messages
17
Reaction score
9
Location
Germany
I have the problem with the custom models and service, too.
And on the other system where I have CPAI running on another host in docker it complaints on startup that it couldn't start AI (no, start/stop with BI is NOT checked) but a moment later reports tha AI is responding. And there I only get the folder-dialog when looking for custom models.
And I can't check the CUDA and ALPR-boxes, they're greyed out.
Seems there are some hiccups at the moment.
I'll wait a few days if that gets resolved, otherwise I'll report it to Ken. But could be possible that he's already aware of that, and has enough reports at the moment.
 

tech101

Known around here
Joined
Mar 30, 2015
Messages
1,472
Reaction score
2,125
Location
SF BayArea, USA
Awesome thanks for all the efforts.

I'm having the same issue others are in that BI doesn't detect custom models when started as a service. I tried the guidance here from @JNDATHP but whenever I start BI as a service the custom models field is blank:

I think few folks were having similar issue yesterday people who are running CPAI, seems to be in the process of being reported to the BlueIris Team.

 

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,208
Reaction score
1,472
Location
USA
This not seeing the models issue in BI does not affect CPAI at all. As long as you specify in each cam what model you want to use it works fine. All that really shows are which models are installed in CP. The selection is still in each camera's settings. Ken has already replied he is aware of this.

Screenshot 2023-01-24 191306.png

UPDATE: Issue fixed in 5.6.9.2
 
Last edited:

Alan_F

Getting the hang of it
Joined
May 17, 2019
Messages
64
Reaction score
57
Location
Maryland
Testing and tuning -> Analyze with AI doesn't appear to be working for me. Actual clips are getting analyzed. Is it just me?
 

Alan_F

Getting the hang of it
Joined
May 17, 2019
Messages
64
Reaction score
57
Location
Maryland
It is working for me.
Working for me again after upgrading to 5.6.9,2

I have two cameras with "ipcam-general" in the custom models field, but it is running the images through ALL the models. Is there a way to get it to only use the one I entered? Oddly, I have two other cameras that are set to "license-plate" and the AI analysis window shows that those are only being run through license-plate.

Edit: now I'm not sure what is going on. It looks like all of the cameras are running all of the models. Response times are really slow.

Edit:
I've also seen this several times:

1674672904083.png

I tried entering:
"license-plate;actionnetv2:0;ipcam-animal:0;ipcam-combined:0;ipcam-dark:0;ipcam-general:0 "
for the custom models to disable the other ones. The AI analysis window still shows all the model being checked.

This camera is set for "to confirm" and "Mark as vehicle" = DayPlate,NIghtPlate,

1674673053498.png


yet this alert image seems to have been generated as soon as it detected "vehicle" or "car"

1674673109299.png

It should never have detected a car or vehicle, and should have only fired the alert image when it detected a DayPlate or NIghtPlate.

The custom models seem to be a mess in this version. I'm sure Ken will have it sorted soon.



Even More Edit - I re-read the documnetation, so I tried treating the list as an exclude list, entering everything I didn't want to use. So "objects:0;actionnetv2:0;ipcam-animal:0;ipcam-combined:0;ipcam-dark:0;license-plate:0" to run just ipcam-general and objects:0;actionnetv2:0;ipcam-animal:0;ipcam-combined:0;ipcam-dark:0;ipcam-general:0" to run just license plates. Looking at the AI analysis windows it still runs everything through all models... but it returns "Nothing found" even though the analysis window has LOTS of detected objects, including 'vehicle' which is in the 'to confirm' box.

This analysis returned "nothing found" when using those settings even though it clearly detected objects.

1674674253209.png
 
Last edited:

Tinman

Known around here
Joined
Nov 2, 2015
Messages
1,208
Reaction score
1,472
Location
USA
Working for me again after upgrading to 5.6.9,2

I have two cameras with "ipcam-general" in the custom models field, but it is running the images through ALL the models. Is there a way to get it to only use the one I entered? Oddly, I have two other cameras that are set to "license-plate" and the AI analysis window shows that those are only being run through license-plate.

Edit: now I'm not sure what is going on. It looks like all of the cameras are running all of the models. Response times are really slow.

Edit:
I've also seen this several times:

View attachment 151930

I tried entering:
"license-plate;actionnetv2:0;ipcam-animal:0;ipcam-combined:0;ipcam-dark:0;ipcam-general:0 "
for the custom models to disable the other ones. The AI analysis window still shows all the model being checked.

This camera is set for "to confirm" and "Mark as vehicle" = DayPlate,NIghtPlate,

View attachment 151935


yet this alert image seems to have been generated as soon as it detected "vehicle" or "car"

View attachment 151936

It should never have detected a car or vehicle, and should have only fired the alert image when it detected a DayPlate or NIghtPlate.

The custom models seem to be a mess in this version. I'm sure Ken will have it sorted soon.



Even More Edit - I re-read the documnetation, so I tried treating the list as an exclude list, entering everything I didn't want to use. So "objects:0;actionnetv2:0;ipcam-animal:0;ipcam-combined:0;ipcam-dark:0;license-plate:0" to run just ipcam-general and objects:0;actionnetv2:0;ipcam-animal:0;ipcam-combined:0;ipcam-dark:0;ipcam-general:0" to run just license plates. Looking at the AI analysis windows it still runs everything through all models... but it returns "Nothing found" even though the analysis window has LOTS of detected objects, including 'vehicle' which is in the 'to confirm' box.

This analysis returned "nothing found" when using those settings even though it clearly detected objects.

View attachment 151949
Use comma delimited for example: ipcam-combined, ipcam-dark do not use semicolon
 
Last edited:

Alan_F

Getting the hang of it
Joined
May 17, 2019
Messages
64
Reaction score
57
Location
Maryland
Use comma delimited for example: ipcam-combined, ipcam-dark do not use semicolon
Tried:
objects:0,actionnetv2:0,ipcam-animal:0,ipcam-combined:0,ipcam-dark:0,ipcam-general:0

Check my work... that is a direct cut and paste from the UI.

Results in all models being used and 'nothing found' result even though the analysis window shows listed 'to confirm' objects from the non-excluded custom models (in this case, there is a DayPlate in the image, and that string above excludes everything BUT license-plate)
 

rdxny

Getting the hang of it
Joined
Oct 15, 2022
Messages
139
Reaction score
81
Location
ny
Also updated in 5.6.9.2: "use CUDA" in the general settings of BI now is "use GPU" to reflect the need to check that to get CPAI to use GPU in the .NET version.
 

harleyl7

Pulling my weight
Joined
Jun 4, 2021
Messages
260
Reaction score
223
Is LPR fully integrated or am I missing where to use the LPR function?
 

sp3ctre

Getting the hang of it
Joined
Sep 29, 2018
Messages
53
Reaction score
28
Location
UK
Does anyone know how to get the JSON payload out to a webservice in an alert?

I tried the following but it sends nothing (presumed the required objects could be left blank to send everything?):

alert-ai.jpg
 
Top