Codeproject AI and clouds

Post Reply
RickJamesBish
Posts: 13
Joined: Fri Oct 06, 2023 6:18 pm

Codeproject AI and clouds

Post by RickJamesBish »

Maybe I have something configured incorrectly or missing a step, clouds going over cause a trigger, and the AI is detecting parked cars during that trigger and therefore keeping the recording.

Is there any way around this?
veldthui
Posts: 23
Joined: Tue Jun 18, 2019 5:19 pm

Re: Codeproject AI and clouds

Post by veldthui »

Doesn't appear to be. I have a parked trailer in my back yard and everytime something triggers the AI says it is a car and sets the alert.
I also have a tree branch and in windy conditions it say it is a person with an 86% confidence. For the trailer I had to stop it detecting cars, trucks, etc and put that into the cancel alert.
RickJamesBish
Posts: 13
Joined: Fri Oct 06, 2023 6:18 pm

Re: Codeproject AI and clouds

Post by RickJamesBish »

veldthui wrote: Tue Aug 20, 2024 1:10 am Doesn't appear to be. I have a parked trailer in my back yard and everytime something triggers the AI says it is a car and sets the alert.
I also have a tree branch and in windy conditions it say it is a person with an 86% confidence. For the trailer I had to stop it detecting cars, trucks, etc and put that into the cancel alert.
It seems like a basic setup of Codeproject AI in BI attempts to determine what are false triggers and omits them, but I found it also omits triggers that are legitimate. I see quite a few taking place while I am watching where a car enters the scene, BI records then CAI deletes it.
I'm going to take the CAI off my system for now and see if maybe it improves later. Granted that without it, I will have to manually determine what are false triggers and delete them, but I also don't have to worry a trigger I need being deleted. I know there is an option to not delete them, but once you start doing that, you may as well just not have CAI. I have not seen any other feature of CAI that merits keeping it.

Thanks for your input.
User avatar
TimG
Posts: 2768
Joined: Tue Jun 18, 2019 10:45 am
Location: Nottinghamshire, UK.

Re: Codeproject AI and clouds

Post by TimG »

I don't understand the static object detection in BI5 for CPAI. It appears to be what we need here, but I can't make it work. I regularly get clouds reflected from my parked car windscreen triggering BI5, then CPAI figuring out it's a car and the static detection cannot figure out that the parked car hasn't moved for hours. I tried adding rules for static detection but was told that would prevent it working. We need a good guide on how to use this :!:
Forum Moderator.
Problem ? Ask and we will try to assist, but please check the Help file.
louyo
Posts: 183
Joined: Sat Apr 18, 2020 1:16 am

Re: Codeproject AI and clouds

Post by louyo »

My $0.02: If the windshield area of the car is changing, then the car is not static. Maybe blank out that area. Maybe just trigger on the vehicle entering the area. Or clone and alert the clone on persons. I think you have to sneak up on it, CPAI is just a tool, not the end all. I don't like static object detection, it triggers constant calls to CPAI.
I have a camera that covers some steel steps and a loading dock entrance. Alerts are set for vehicle and persons. At night, headlights on the steel steps cause a trigger and AI decides the steps are a vehicle. Does not happen during working hours.
I am not interested in catching a vehicle going up the steps. I cloned the camera, the clone only records on alerts. For non working hours, I set the steps to only alert on persons. On the main camera, I mask out the steps. If I suspect something, I also look through cancelled alerts.

Also, keep in mind that the size of the CPAI model will affect the accuracy. You can use jpegs to test out CPAI separately from Blue Iris.
FWIIW: We have a cat that wanders around the back lot at night. If the light is right (usually headlights), the cat+shadow will get identified as a person. Really pisses off the cat.
twiseva
Posts: 3
Joined: Fri Nov 17, 2023 12:37 am

Re: Codeproject AI and clouds

Post by twiseva »

TimG wrote: Fri Aug 23, 2024 5:38 am I don't understand the static object detection in BI5 for CPAI. It appears to be what we need here, but I can't make it work. I regularly get clouds reflected from my parked car windscreen triggering BI5, then CPAI figuring out it's a car and the static detection cannot figure out that the parked car hasn't moved for hours. I tried adding rules for static detection but was told that would prevent it working. We need a good guide on how to use this :!:
Agreed, it's a tough one to understand. I have read all the docs multiple times and am still not sure about static analysis. I have been playing with AI just for fun and the 'verification' part seems to work fairly well. In that I use 'persons,vehicles' to make sure it's something I care about before alerting. I am actually alerting up to my Hubitat home automation as that has a lot more smarts than BI.

I have been trying (for weeks) to get static analysis to work -- basically I want it to let me know when there is a car parked in the drive. And then again when its gone. I use hubitat to do alerts and so one based on those events. Unfortunately, it's not reliable and not consistent. Sometimes it works well for days sometimes it thinks there is no car and its sitting in plain daylight. Right now the car is gone and it has not triggered anything (should have triggered an alert for 'doesn't exists'). Replaying and having AI analysis on to debug shows exactly what I'd expect -- I am suspecting issues with/BI and its alerting/static object analysis ... Or (more likely) me not knowing what I am doing.

Havign said all that, just understanding how to set it up was a pain -- a detailed guide would be awesome. The document misses a lot and skips over various options. Well good luck, I am sure it'll get better.
rollingstone
Posts: 1
Joined: Fri Feb 21, 2025 11:06 am

Re: Codeproject AI and clouds

Post by rollingstone »

twiseva wrote: Fri Feb 21, 2025 1:34 am
TimG wrote: Fri Aug 23, 2024 5:38 am I don't understand the static object detection in BI5 for CPAI. It appears to be what we need here, but I can't make it work. I regularly get clouds reflected from my parked car windscreen triggering BI5, then CPAI figuring out it's a car and the static detection cannot figure out that the parked car hasn't moved for hours. I tried adding rules for static detection but was told that would prevent it working. We need a good guide on how to use this :!:
Agreed, it's a tough one to understand. I have read all the docs multiple times and am still not sure about static analysis. I have been playing with AI just for fun and the 'verification' part seems to work fairly well. In that I use 'persons,vehicles' to make sure it's something I care about before alerting. I am actually alerting up to my Hubitat home automation as that has a lot more smarts than BI.

I have been trying (for weeks) to get static analysis to work -- basically I want it to let me know when there is a car parked in the drive. And then again when its gone. I use hubitat to do alerts and so one based on those events. Unfortunately, it's not reliable and not consistent. Sometimes it works well for days sometimes it thinks there is no car and its sitting in plain daylight. Right now the car is gone and it has not triggered anything (should have triggered an alert for 'doesn't exists'). Replaying and having AI analysis on to debug shows exactly what I'd expect -- I am suspecting issues with/BI and its alerting/static object analysis ... Or (more likely) me not knowing what I am doing.

Havign said all that, just understanding how to set it up was a pain -- a detailed guide would be awesome. The document misses a lot and skips over various options. Well good luck, I am sure it'll get better.
yeah, I feel you :cry: I had the same issue with a parked car not being recognized properly, sometimes tweaking the motion sensitivity helps, but it’s definitely not consistent :? please, let me know if you figure something out
twiseva
Posts: 3
Joined: Fri Nov 17, 2023 12:37 am

Re: Codeproject AI and clouds

Post by twiseva »

So, I seem to have this AI static analysis working mostly. I have attached a file link (as the attachment limits are miniscule here). Hope it helps some folks make a breakthrough ... ! Feedback and suggestions on improving the setup most welcome! I am still playing with it all.

https://1drv.ms/b/c/7ac768fad0a64b52/EQ ... w?e=MHDubo
Post Reply