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. Re: Masking issues - RPi 4 (Barry Martin) ---------------------------------------------------------------------- Message: 1 Date: Tue, 24 Jun 2025 15:02:23 -0500 From: Barry Martin <barry3mar...@gmail.com> To: Roger Heflin <roger.hef...@gmail.com>, Adam Briggs via Motion-user <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] Masking issues - RPi 4 Message-ID: <2851e4ef-9c7f-411f-8a59-de1f367b4...@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Hi Roger! I think I was overthinking your replies.? What worked here was taking a screenshot (png), opening that with GIMP and editing -- basically a black rectangle overlying the general fan area and white rectangles for the rest.? Save that as .xcf? (default for GIMP).?? Have GIMP export to .pgm.? Copy the file to /etc/motion, edit Camera1.conf.? Restart Motion and enjoy not having '3-trillion' Motion files of fan rotations! <g> Thanks! Barry > I never do a "new" image. I always open and edit the image off the > camera (from the snapshot motion option) that I collect 1x per hour, > that way the size is always right. > > Then I export/save it from gimp as pgm. > > You can also use vlc and/or mplay to play one of the collected vidoe > files from motion and see what size it tells you. > > On Tue, Jun 24, 2025 at 10:20?AM Barry Martin <barry3mar...@gmail.com> wrote: >> >> Hi Roger! >> >> I always start with an image pulled from the camera and open that in >> gimp.. It is kind of a pain to paint it black and/or white for the >> mask but it also gives me a good idea of what moves a lot and needs >> masked. >> >> Yes, got that far: I have a black and white pgm file with black in the area >> (and slightly beyond) where the fan rotates. It's that second part ("Line >> 2") I need help figuring out (see quote, below). >> >> Thanks! >> >> Hi Roger! >> >> 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. >> >> Created the mask file: 205_Mask.pgm. Basically first time using GIMP -- >> heavily relied on an old lesson: save the file when have a correct step! >> >> >> 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. >> >> This part I'm getting confused with. Figuring: >> >> Line 1: Open the newly-created mask file (so 205_Mask.pgm) >> >> Line 2: Ummmmm.... I'm thinking some sort of command line or check >> the boxes dropdown. My camera's resolution is set at 1280x720. so plug >> that in for size. >> >> Thanks! >> >> Barry >> >> ------------------------------ ------------------------------ 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 2 *******************************************