Page 1 of 1

How can I finetune CPAI?

Posted: Thu Mar 27, 2025 11:09 pm
by roechas
CPAI is detecting a gas can, grill cover, and plastic wrapping from shingles as a person. Is there any way to train it that these items are not people?
gascan.gif
gascan.gif (105.41 KiB) Viewed 801 times
shingles.gif
shingles.gif (109.53 KiB) Viewed 801 times

Re: How can I finetune CPAI?

Posted: Fri Mar 28, 2025 12:18 am
by BruceH
I often get squirrels that are 60% person, I really don't have the time or the inclination to get rid of what I consider minor nuisances, CPAI has dramatically reduced my nuisance motion detection triggers from shadows, rain, snow and clouds etc..

Have you tried to turn of static object detection, it might help with the identification of non moving objects, there are a number of opinions on how static object detection is supposed to work, but I have it shut off on all of my cameras and I have three different systems running, one of them has over 28 cameras on it.

Re: How can I finetune CPAI?

Posted: Fri Mar 28, 2025 5:24 am
by TimG
Can you eliminate them by increasing the percentage required for a valid identification ?

Re: How can I finetune CPAI?

Posted: Mon Mar 31, 2025 12:31 pm
by MikeBwca
I've had similar issues... tree trunks, electrical poles, signposts...

Static detection works... most of the time... for foreground large objects... sometimes! I'm not saying it doesn't work - I just haven't figured it out - yet.

What I ended up doing is to mask out those areas. Works great.
You may think... But you won't get alerts in those areas!. Yes, that's correct. But you will still get motion/AI in the areas around it. And, if the masked out areas are small enough, it wont be an issue.

In your case...

First image of the pathway between the fence & building:
, mask out the small areas where the items are by the brick wall. Motion/AI will not be detected there. It should not impact detection of people as it is small and low to the floor. Even if a person slithered on the floor next to the wall (unlikely), they would have to climb over or push the items away causing motion/AI detection.

Second image of deck:
Zone out breaks in-line with motion, like streaks. This will break up the falsely detected objects, but still allow motion detection between the zoned-out areas.

For example... (I colored the masked areas red to be more noticeable)
gascan.gif
gascan.gif (136.44 KiB) Viewed 535 times
shingles.gif
shingles.gif (137.85 KiB) Viewed 535 times

Increasing the 'Object size' may also help.

Raising the conformed % will work. But, you will loose detection of lower confirmed %'s that are valid, which can happen in certain circumstances.

Another thing to consider If an detected person moves to/from the foreground, they will appear very large. The alert may be canceled if the "Reset detector when/Object size exceeds' is too small. You may want to increase it to 95 or 100, or disable it.