Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Masking issues - RPi 4 (Barry Martin) 2. Re: Masking issues - RPi 4 (Roger Heflin) 3. Re: Masking issues - RPi 4 (Barry Martin) ---------------------------------------------------------------------- Message: 1 Date: Mon, 23 Jun 2025 15:54:27 -0500 From: Barry Martin <barry3mar...@gmail.com> To: motion-user@lists.sourceforge.net Subject: [Motion-user] Masking issues - RPi 4 Message-ID: <69984c6b-ebd5-472e-adfc-5d04f27e9...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Hi Folks! Having problems figuring out how to use masking options. Hardware: Raspberry Pi 4, Bookworm, Wayland (probably the Labwc option ? I don?t know [yet!] how to test for that). ELP USB camera: ELP-USBFHD06MT-KL36IR lsusb: ID 32e4:9230 HD USB Camera. Motion software is Version 4.7.0. There is a ceiling fan along with tree and shadow motions with are giving a constant series of recordings. I can?t reposition the camera to get the fan out of view because of position between window glass and mini-blinds. What I have tried so far: In /camera1.conf/ first added *smart_mask_speed 5* Didn?t seem to make any difference. This afternoon commented smart mask and tried *area_detect 789* so just pays attention to the bottom portion. Still picking up a lot of moving shadows from the trees so probably not my best option but again not seeing any changes in sensitivity so tons of recordings. Thanks for pointing me in the right direction! Barry -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Mon, 23 Jun 2025 16:09:45 -0500 From: Roger Heflin <roger.hef...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Masking issues - RPi 4 Message-ID: <caamcdedsg4wobx1map76htppgrjl8yhf+fdfpockxt9an_s...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" I never found smart mask to work reasonably. Eventually with some wind it seems to mask out almost everything. And the area_detect I think only works for events. You need to make a mask file. Take an image from the camera, read it into gimp, then paint everything black you want ignored, and white you don't want to ignore and export it as a binary pgm. file should look like this: file gs2_mask.pgm gs2_mask.pgm: Netpbm image data, size = 3840 x 2160, rawbits, greymap And have the same size as your camera image. Then add to the config file this line: mask_file /etc/motion/gs2_mask.pgm I have to adjust mine and/or prune trees getting into the edges of the images every so often. On Mon, Jun 23, 2025 at 3:56?PM Barry Martin <barry3mar...@gmail.com> wrote: > > > Hi Folks! > > > Having problems figuring out how to use masking options. > > > Hardware: Raspberry Pi 4, Bookworm, Wayland (probably the Labwc option ? I > don?t know [yet!] how to test for that). ELP USB camera: > ELP-USBFHD06MT-KL36IR lsusb: ID 32e4:9230 HD USB Camera. > > > Motion software is Version 4.7.0. > > > There is a ceiling fan along with tree and shadow motions with are giving a > constant series of recordings. I can?t reposition the camera to get the fan > out of view because of position between window glass and mini-blinds. > > > What I have tried so far: > > > In camera1.conf first added > > smart_mask_speed 5 > > Didn?t seem to make any difference. > > > This afternoon commented smart mask and tried > > area_detect 789 > > so just pays attention to the bottom portion. Still picking up a lot of > moving shadows from the trees so probably not my best option but again not > seeing any changes in sensitivity so tons of recordings. > > > Thanks for pointing me in the right direction! > > Barry > > > > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user ------------------------------ Message: 3 Date: Mon, 23 Jun 2025 18:59:14 -0500 From: Barry Martin <barry3mar...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Masking issues - RPi 4 Message-ID: <c0c16462-e587-41bf-b5b4-c5834b0d9...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Hi Roger! > I never found smart mask to work reasonably. Eventually with some > wind it seems to mask out almost everything. That would be bad! > And the area_detect I think only works for events. I couldn't quite tell:? "Detect motion in predefined areas (1 - 9) and when Motion is detected in the area, execute the script." Scanning though the section? I wasn't sure what script was being referred to > You need to make a mask file. Take an image from the camera, read it > into gimp, then paint everything black you want ignored, and white you > don't want to ignore and export it as a binary pgm. > > file should look like this: > > file gs2_mask.pgm > gs2_mask.pgm: Netpbm image data, size = 3840 x 2160, rawbits, greymap > > And have the same size as your camera image. > > Then add to the config file this line: > mask_file /etc/motion/gs2_mask.pgm > > I have to adjust mine and/or prune trees getting into the edges of the > images every so often. <chuckle>? That's why smart_mask sounded so good!? ...I'll try creating a mask and get back with the results.? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 223, Issue 1 *******************************************