Motion Detection Settings - MASK & DESPECKLE FILTER

3,214 views
Skip to first unread message

Thomas S

unread,
Jun 1, 2019, 11:33:24 AM6/1/19
to motioneye
Good Morning All,

I'm getting more into my Raspberry Pi cameras and the MotionEyeOS. I've got a boat load of questions in regards to the Motion Detection settings available, but I'm not going to ask all of them here. I've just got a couple at the end of this post.

I'm now running 2 Raspberry Pi's each with a single camera. Again, my hardware/software;
Raspberry Pi [Model B Revision 2.0] (it has the V2 camera attached and a portable USB HDD)
MotionEyeOS that I run on my SD card is motioneyeos-raspberrypi-20190427.img

I'm currently using the standard out-of-the-box Motion Detection settings to start with. However I'm noticing that one system records almost all the time, while the other system barely picks up any motion detection at all. The system that records almost all the time has a tree in the foreground that moves quite a bit in the wind.

Let's call these systems Front Left and Front Right;

Front Left.png Front Left (barely picks up any motion detection at all, even when vehicles pass by)


Front Right.png Front Right (records almost all the time - tree in foreground moves in the wind)


Before I start mucking with any of the Motion Detection settings, I'm trying to familiarize myself with what they are and what they mean/how they function and react to other settings. I've jotted down the information directly from the program below;


MOTION DETECTION

1ST SECTION

Frame Change Threshold

indicated the minimal percent of the image that must change between two successive frames in order for motion to be detected (smaller values give a more sensitive detection, but are prone to false positives)


Auto Noise Detection (On/Off)

enable this to automatically adjust the noise level


Light Switch Detection

sets the percentage of the image that needs to change so that the event is treated as a sudden light change instead of motion (0% disables the function)


Despeckle Filter (On/Off)

enable this to apply a despeckle filter to frames before detecting motion


2ND SECTION

Motion Gap (XX seconds)

sets the number of seconds of silence (i.e. no motion) that mark the end of a motion event


Captured Before (x frames)

sets the number of frames to be captured (and included in the movie) before a motion event is detected


Captured After (x frames)

sets the number of frames to be captured (and included in the movie) after the end of a motion event


Minimum Motion Frames (xx frames)

sets the minimum number of successive motion frames required to start a motion event


3RD SECTION

Mask (On/Off)

enables image masking for a more selective and precise motion detection


4TH SECTION

Show Frame Changes (On/Off)

if this is enabled, frame changes (number of pixels as well as the changed area) are shown on the video; temporarily enable this option to help adjust the motion detection parameters


Create Debug Media Files (On/Off)

when enabled, creates special movies and pictures that help debugging motion detection problems


If you have any other sources of information about what these do, and how they react when changing them, please share that if you can.


A couple of simple questions that I have right now;


1. when creating a MASK - are the squares that you pick ones that ignore motion or ones that detect motion?

2. what the heck does the DESPECKLE FILTER do? The explanation doesn't make any sense to me.


Dewey D.

unread,
Jun 1, 2019, 1:25:35 PM6/1/19
to motioneye
For the mask, the darker squares are the ones that will ignore motions.  I would start out darkening the entire top portion of that tree.  While I can't give you a definition of the despeckle filter, I will say that it goes a long way in preventing falsing, same with the auto noise detection.  Finally, you may want to turn your "Frame Change Threshold" down (lower numbers) on the camera that seems to not pick up motion.  That will be a trial and error routine until you get it the way you like.  (I have a couple cameras where my threshold is all the way down to 0.5).  You can also turn on "Show Frame Changes" to get a red box on the motion that triggers the camera.  That will help you with your masking and motion threshold.

Dewey

Thomas S

unread,
Jun 1, 2019, 4:40:50 PM6/1/19
to motioneye

Kevin Shumaker

unread,
Jun 1, 2019, 5:15:29 PM6/1/19
to motioneye
As a suggestion, get the basic setup (cameras loaded, file system settings, etc), then save the settings. When/if you need to reflash, you can then reload the settings.
Another option: Once you get it all set up, then go back to the PC or MAC that you created it on, and copy the image back to save it. I've trashed a number of SD cards using motionEyeOS. I've shifted to loading Raspbian Lite on USB drive (PI3B+), and run motionEye app on it. Haven't lost a single USB stick. It's not quite as efficient, but doesn't destroy SD cards like I've seen..

--
You received this message because you are subscribed to the Google Groups "motioneye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to motioneye+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/motioneye/ab5d5432-f37c-4705-93ba-89995c7a5e57%40googlegroups.com.


--
Thanks

Kevin Shumaker

N38° 19' 56.52"
W85° 45' 8.56"

Semper Gumby
“Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA
Ethics are what we do when no one else is looking.
Quis custodiet ipsos custodes?
You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

David Chew

unread,
Jun 3, 2019, 8:42:46 AM6/3/19
to Kevin Shumaker, motioneye
I hit the upgrade button on one MotionEyeOS PI the other day and once again I have a dead PI.   I back up settings religiously having gone through this several times in the past.   I'm up to 6 pi's with 10 cameras, including a solar remote setup on Mesh Network.    Time to wipe the SD card and get the new distro.    I have a full version of Raspbian on one of the PICam setups.   I forget which one.   LOL    Setting up the motion settings and capture config has been a PIA for me,  I still don't have it figured out fully.    I've come to the point where I think none of the settings do much of anything.    Frames before doesn't seem to work or I am over taxing the compute and USB bus on the PI.    With one of the releases SAMBA stopped working and I can't remotely run a batch file to collect pictures to a Windoz server.   The pictures and videos compress to nothing with de-dup turned on.  :)  



--
David T. Chew

Richard Carrozza

unread,
Jun 3, 2019, 8:54:27 AM6/3/19
to motioneye

DON'T UPGRADE ZERO PI!

I did the upgrade on my Pi Zero a couple of weeks ago and then I could not access it. My Zero ran almost nonstop for a year with no problem until said upgrade. I reinstalled the older img back to the card and now it is working fine again. 


On Monday, June 3, 2019 at 8:42:46 AM UTC-4, David Chew wrote:
I hit the upgrade button on one MotionEyeOS PI the other day and once again I have a dead PI.   I back up settings religiously having gone through this several times in the past.   I'm up to 6 pi's with 10 cameras, including a solar remote setup on Mesh Network.    Time to wipe the SD card and get the new distro.    I have a full version of Raspbian on one of the PICam setups.   I forget which one.   LOL    Setting up the motion settings and capture config has been a PIA for me,  I still don't have it figured out fully.    I've come to the point where I think none of the settings do much of anything.    Frames before doesn't seem to work or I am over taxing the compute and USB bus on the PI.    With one of the releases SAMBA stopped working and I can't remotely run a batch file to collect pictures to a Windoz server.   The pictures and videos compress to nothing with de-dup turned on.  :)  

To unsubscribe from this group and stop receiving emails from it, send an email to moti...@googlegroups.com.


--
Thanks

Kevin Shumaker

N38° 19' 56.52"
W85° 45' 8.56"

Semper Gumby
“Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA
Ethics are what we do when no one else is looking.
Quis custodiet ipsos custodes?
You know we're sitting on four million pounds of fuel, one nuclear weapon and a thing that has 270,000 moving parts built by the lowest bidder. Makes you feel good, doesn't it?

--
You received this message because you are subscribed to the Google Groups "motioneye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moti...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages