5.5.8 - June 13, 2022 - Code Project’s SenseAI,

dockdoc

Young grasshopper
Joined
Dec 27, 2021
Messages
32
Reaction score
16
Location
Charlotte NC
@dockdoc Share a screenshot of your alert config. Did you include "Car" as a required object for that alert?
I'm not sure what you mean... are you referring to the "on alert..." option? I do have Car in that, but regardless it's not registering an alert to even generate a notification. Trying to fix this issue before I focus on the notifications, if that makes sense.
 

actran

Pulling my weight
Joined
May 8, 2016
Messages
433
Reaction score
248
@dockdoc Your "On Alert" is active for profile 1 and 3 only, is that intended? So do you change profile during the day/night?

Separately, why is only zone B checked? Is that the right zone for the motion?
 

dockdoc

Young grasshopper
Joined
Dec 27, 2021
Messages
32
Reaction score
16
Location
Charlotte NC
@dockdoc Your "On Alert" is active for profile 1 and 3 only, is that intended? So do you change profile during the day/night?

Separately, why is only zone B checked? Is that the right zone for the motion?
Correct on both counts. 1 is day, 3 is late night. Zone B basically marks out our driveway so we don't pick up the street or neighbor's traffic. Those settings have all been stable and working well.
 

actran

Pulling my weight
Joined
May 8, 2016
Messages
433
Reaction score
248
@dockdoc

Understood, other than trying "Person,Car,Dog" in the required object, or leave that field completely blank, I don't see anything else out of place...
 

woolfman72

Getting the hang of it
Joined
Dec 28, 2015
Messages
142
Reaction score
69
I've set up CodeProject AI and have had fairly good success. I'm still struggling with nighttime detection though (I posted this on a separate thread and got some advice but still having issues).

Camera is IPC-T2431T-AS. It's pointed at my driveway. Quite simply I want it to alert when there's a vehicle, dog or person in the view, at all hours.

Daytime: Near-perfect performance.

Nighttime: everything gets wonky (on this one and another nearby one).

I've done a bunch of tweaking, and on the alert clips I can see the vehicles perfectly. Lots of contrast, very clear image, and the "Analyze with AI" shows confidence >90% on the playback. It's triggering via motion so at least it's recording, but it's not generating an alert.

Here is a screenshot and my settings. The only reason this alerted is because it picked up on Person, otherwise it would have ignored the video.

By the way, is ipcam-dark actually meant to detect objects better at night? Or is that mistaken thinking? Should I be using a different custom model? I started off with the built-in models and am trying the custom ones to see if they work better but they seem about the same.

View attachment 145929
View attachment 145930

View attachment 145933View attachment 145932
I've noticed the same issues. I have two computers running BI right now. One with DS and another with SAI. Both are rock solid during the day and at night Senseai is dropping the ball when i compare the alerts between the two. Also getting tags in my lpr yet the driveway cam isnt catching the cars drive by and this is an 180 degree 4k so no reason it should be missing anything as it has a whole shot of the street.
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
538
Reaction score
430
Don’t think so - how do I load that one? Don’t see it in the custom models.
You need to copy the yolov5l.pt file from the default folder (C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\assets) to your custom model folder.

Screen Shot 2022-11-18 at 6.40.32 AM.png
 
Last edited:

gwithers

Getting the hang of it
Joined
May 18, 2016
Messages
26
Reaction score
25
Just to reinforce what "Actran" mentioned, the ipcam-dark model ONLY has labels that start with capital letters and you should not get any confirmations when using lower case labels (I know I do not as DS/CPAi are case sensitive). It would makes sense that day time would be working with lower case labels as one would not normally set the custom model to ipcam-dark for day time use and the other models use lower case. Also remember there are individual AI settings for for Day and Night profiles and perhaps you have a different model selected for day use and that one would use lower case labels.

Or perhaps this is more of a push notification issue and less of a CPAi configuration issue (which admittedly I was focusing in on).
 

OfficerD00fy

Young grasshopper
Joined
Jun 22, 2018
Messages
74
Reaction score
13
Location
Australia
Struggling to find the sweetspot for night time. The cars headlights coming into view causes the senseai to scan photos with only the cars headlight in view thus missing the car. The issue is some cars drive very fast (detected by sense AI) and others very slow (headlight only scanned).
What settings should I modify? I've tried 100,200,500,750 ms and am constantly missing different cars at different points. No pre recording as well. I've set up the front house cameras with NO SUBSTREAM's to ensure they are working properly (5%-10% usage total on Ryzen 2600 + 1060GPU).
Can anyone provide advice on what I should change? Increase the photos taken to something like 30? and 250ms?
 

wittaj

IPCT Contributor
Joined
Apr 28, 2019
Messages
16,279
Reaction score
30,312
Location
USA
Struggling to find the sweetspot for night time. The cars headlights coming into view causes the senseai to scan photos with only the cars headlight in view thus missing the car. The issue is some cars drive very fast (detected by sense AI) and others very slow (headlight only scanned).
What settings should I modify? I've tried 100,200,500,750 ms and am constantly missing different cars at different points. No pre recording as well. I've set up the front house cameras with NO SUBSTREAM's to ensure they are working properly (5%-10% usage total on Ryzen 2600 + 1060GPU).
Can anyone provide advice on what I should change? Increase the photos taken to something like 30? and 250ms?
Simple fix LOL.

Under AI for the camera, add more "+ real time images" and use the "To cancel" box and add in an item you wouldn't see so that it forces it to use all of the additional images. In my case it is a giraffe LOL.

The to cancel box forces it to run every image. Without it, it will do as you are seeing.
 

dockdoc

Young grasshopper
Joined
Dec 27, 2021
Messages
32
Reaction score
16
Location
Charlotte NC
Just to reinforce what "Actran" mentioned, the ipcam-dark model ONLY has labels that start with capital letters and you should not get any confirmations when using lower case labels (I know I do not as DS/CPAi are case sensitive). It would makes sense that day time would be working with lower case labels as one would not normally set the custom model to ipcam-dark for day time use and the other models use lower case.
I don't think that's accurate. The only model I have loaded is ipcam-dark (default models unchecked), and everything is lowercase and I'm still getting perfect daytime notifications.

Also remember there are individual AI settings for for Day and Night profiles and perhaps you have a different model selected for day use and that one would use lower case labels.
Same model being used for day and night. I only have my trigger profile scheduled to switch at 1am, otherwise it uses the same profile well into the night.[/QUOTE]

Or perhaps this is more of a push notification issue and less of a CPAi configuration issue (which admittedly I was focusing in on).
I think I've ruled that out since I am getting push notifications on this camera and others ( with the same configuration) but not consistently.[/QUOTE]

You need to copy the yolov5l.pt file from the default folder (C:\Program Files\CodeProject\AI\AnalysisLayer\ObjectDetectionYolo\assets) to your custom model folder.
Thanks - I'll give this one a try and see how it goes.

I'm rapidly reaching the conclusion that the AI just doesn't work with this field of view at night, for whatever reason, especially with vehicles.
 

OfficerD00fy

Young grasshopper
Joined
Jun 22, 2018
Messages
74
Reaction score
13
Location
Australia
Simple fix LOL.

Under AI for the camera, add more "+ real time images" and use the "To cancel" box and add in an item you wouldn't see so that it forces it to use all of the additional images. In my case it is a giraffe LOL.

The to cancel box forces it to run every image. Without it, it will do as you are seeing.
Awesome I'll give that a try...

Are you talking about an LPR camera?
Nah not the LPR, LPR working fine at the moment.
 

OfficerD00fy

Young grasshopper
Joined
Jun 22, 2018
Messages
74
Reaction score
13
Location
Australia
Simple fix LOL.

Under AI for the camera, add more "+ real time images" and use the "To cancel" box and add in an item you wouldn't see so that it forces it to use all of the additional images. In my case it is a giraffe LOL.

The to cancel box forces it to run every image. Without it, it will do as you are seeing.
Would this work with the LPR too?
 

gwithers

Getting the hang of it
Joined
May 18, 2016
Messages
26
Reaction score
25
I can only confirm that in my setup, the labels are case sensitive in terms of BI specific functions, such as the "to confirm" based alert functionality. As I understand it, these labels used to confirm object detection and fire off an alert in BI is not actually the same thing as the CPAi inference testing and the results we can see in the BI AI debug window. For example, if I am running just the ipcam-dark model, I will get "nothing found" on alerts as seen in BI when I have "car" in "to confirm" but the AI debug window for that same clip shows it found a "Car" with enough confidence to satisfy my AI criteria in BI. This is expected behavior as far as I can tell as the BI alert label values and CPAi finding objects in a model are two independent things. As it is the BI portion that confirms it found a certain object (via the label) and fires off a notification based on that confirmation, it is that portion where the labels matter. CPAi doesn't care what BI is looking for in terms of objects (label) and when BI sends it images to process, it processes the images against all the labels in that model. This is why the ipcam-xxxx models are faster than the standard model (yolov5), because it has fewer objects it is looking for and inference times are lower because of that. This is my understanding of the process but others in this thread certain have a deeper understanding than I.
 
Last edited:

1fxman

Pulling my weight
Joined
Aug 29, 2018
Messages
184
Reaction score
105
Location
Oklahoma
Thanks. I also notice when I have the contrast at 20 in goes crazy. But when I increase it, oh about to 25, it stops triggering over and over. when I get back tomorrow i’ll uncheck the camera’s digital input. Thank you.
So, my CPAI is running. But last night it started snowing and man did it go crazy. The old day’s, before DSAI, cameras would do the same. With rain, snow, clouds, light change, shadows, etc. DeepStack stoped all of that, BAM, right of the bat. But this CPAI not so much. I got it to send less “nothing found” alerts but it still sends the occasional opossum, raccoon, cat, etc. All I want is people and vehicles. Maybe I need to figure out a little about the models and how to load them. Thanks.
 
Top