Need a bit of help with shadows and motion alarms

Forum for questions and support relating to the 1.28.x releases only.
Post Reply
McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Need a bit of help with shadows and motion alarms

Post by McFuzz » Fri Feb 27, 2015 9:29 pm

Howdy,

I have two external cameras - one in my front porch and one in my backyard. They both seem to get a bit too much of false motion alerts due to shadows, specifically when the sun hides behind clouds and comes out from the clouds.

My porch camera has a total of 6 zones, the backyard camera has 4.

Can someone please help me out with which setting I should play with to reduce the amount of false alarms due to shadows? For example - this is how how one of the larger areas in the backyard is setup:

Image


It works great for normal motion detection when an animal or a human walks by...

Thanks in advance!

bbunge
Posts: 2181
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Need a bit of help with shadows and motion alarms

Post by bbunge » Tue Mar 03, 2015 2:42 pm

I usually stick with the default settings and one zone. I adjust the zone to the traffic area to be monitored. Yes, light and dark does trigger alarms and I just live with it. You could try turning the frame rate down on your cameras and reduce the image size. This will reduce the amount of images stored during an alarm event. Turn off CREATE_ANALYSIS_IMAGES as well.

bb

User avatar
knight-of-ni
Posts: 2143
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Need a bit of help with shadows and motion alarms

Post by knight-of-ni » Tue Mar 03, 2015 3:01 pm

This is a common problem with any surveillance system. It is unlikely you are going to eliminate the problem entirely. All you can do is minimize it. What you are going to find is that improving the situation at a certain time of day or weather pattern whille negatively affect motion detection during other times of the day or weather.

So the question becomes, how much time do you want to spend on this versus just going through the motion events to find what you are looking for?

Ultimately, no one can give you exact steps because every single camera and its view is unique. We can only give you guidelines, and you have to figure out what specific settings work for you.

A couple of easy mods:
-Use the MAX Area fields to tell zoneminder to ignore frames with too much motion (e.g. when the sun goes behind a cloud). Experiment to determine what values work best.
-Bump up the Alarm Frame count under each monitor to minimize recording small motion events
-Read the documentation for creating a "Preclusive" zone, which will tell zoneminder to not record if any motion happens in this zone

More Difficult mods:
-Turn on blob detection, turn on analysis frames, and set your Units to pixels. Now look at the statistics for each motion event. It will tell you exactly how many pixels it "counted" as motion. This will let you determine, more preceisly, a number to stick in the MAX area fields. It will also idenfity exactly which parts of your view are triggering the motion so that you can possibly do something about that.
-Read the documentation in the FAQ for setting different states. This will allow you to have different settings during different times of the day.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Re: Need a bit of help with shadows and motion alarms

Post by McFuzz » Fri Mar 06, 2015 1:43 am

Thanks for the info knnniggett; I ended up spending a couple of hours playing with alarm areas and for the most part, I think I got it dialed in enough to eliminate a large chunk of false alarms. Of course, I still get them from time to time - but to give you an idea - last week, I got about 14 alarms within a 30 minute period... Now it'd be maybe 2 or 3 alarms tops per hour on an overcast day.

Jamo
Posts: 15
Joined: Tue Aug 13, 2013 6:25 am

Re: Need a bit of help with shadows and motion alarms

Post by Jamo » Fri Mar 06, 2015 10:57 am

I've found preclusive zones to work well for eliminating certain light change events like shadows and, in one part, car headlights.

I choose a small area of constant colour that shouldn't be triggered by real motion, for example a part of a wall that is quite high above normal traffic areas. I then create a small zone there and set the pixel threshold quite low but the minimum pixels to at least 70% of the pixels in the zone. I also just use alarmed pixels because I don't want to burden the processing for this zone.

Definitely helps eliminating whole scene lighting changes.

operat0r
Posts: 14
Joined: Thu Jan 18, 2018 4:03 am

Re: Need a bit of help with shadows and motion alarms

Post by operat0r » Sun May 06, 2018 1:51 pm

the solution is darknet and Yolo... I'm still to this day tweaking my shadow settings but I have zones that are so far away I can't do much about it or I lose actual events I guess. I even looked at things as far as calculating total score for events. this also didn't prove any help because sometimes actual events have very low score and big shadows and movement have high scores.

I also looked at coworkers in training faces with yolo this also didn't prove to be very easy there's only a handful of people that can actually do it right as far as I can tell. what I wanted was the detect people at the front door and alert me depending on the family member...

http://hackerpublicradio.org/eps.php?id=2528
Zoneminder Darknet yolov2
viewtopic.php?f=36&t=26906

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests