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: Using Motion to compare still images as they are captured
      (Scott Barton)


----------------------------------------------------------------------

Message: 1
Date: Fri, 12 Jun 2020 20:47:42 +0000
From: Scott Barton <scott_bar...@hotmail.com>
To: "motion-user@lists.sourceforge.net"
        <motion-user@lists.sourceforge.net>
Cc: Andrew/ <and...@azotus.co.uk>
Subject: Re: [Motion-user] Using Motion to compare still images as
        they are captured
Message-ID:
        
<mn2pr11mb45524fee7e1eb0447c1613a0eb...@mn2pr11mb4552.namprd11.prod.outlook.com>
        
Content-Type: text/plain; charset="iso-8859-1"

>ah, perhaps you only want to be able to compare two images already saved.

This is exactly it.  There is no live video feed.  A separate program called 
OctoLapse will take time lapse photos every couple of seconds and save them on 
the rPi.  I would like some sort of software that will monitor a directory 
specified in the settings or something and when a new image file is saved 
there, the motion detection software would compare the last 2 images and if it 
detects 'motion' do something.

I believe the Motion program can do motion detection using live video from a 
URL.  It's pretty much doing the hard work now.  All that is needed is instead 
of looking at live video from a URL, the ability to monitor a local directory 
instead and when a new image file is saved, compare the new image file with the 
last image file and do something if detects 'motion'.

Basically, when setting up the Motion software chose between looking at live 
video from a specified URL or static images saved to a specified directory, 
everything else that it does would be the same.

Scott

________________________________
From: Andrew/ <and...@azotus.co.uk>
Sent: Friday, June 12, 2020 2:12 PM
To: Scott Barton <scott_bar...@hotmail.com>
Subject: Re: [Motion-user] Using Motion to compare still images as they are 
captured


perhaps you mis-understood, or perhaps I did. motion checks the live-in-camera 
image and saves an image to a local directory when the image changes.


so it's doing what you want (checking for changes) but before the image saves 
rather than after.


ah, perhaps you only want to be able to compare two images already saved.


couldn't you use cmp or diff instead of motion? also, have a look at 
ImageMagick which may be useful


On 12-Jun. 2:23 p.m., Scott Barton wrote:
The main issue is that Motion is looking for live video (only accepts video 
formats) and it's looking for a URL, not for new files written to a directory.
While built in notifications would be nice, if Motion could be set to look for 
new images in a local directory (set in Motion's settings) and compare the last 
2 images (primarily jpeg, but possibly png) when a new image file is saved 
there, I think I could get everything else to work with current features.

Scott

________________________________
From: Andrew/ <and...@azotus.co.uk><mailto:and...@azotus.co.uk>
Sent: Friday, June 12, 2020, 12:02 PM
To: Scott Barton
Subject: Re: [Motion-user] Using Motion to compare still images as they are 
captured


Not an expert by any means, I'm just a user; but Motion can generate a still 
image [jpg] when a set number of pixels have changed between one image and the 
next and write the updated image to a folder.


As an alternative to motion sending a text/email write something that detects 
that image being saved and sends that text/email


just a suggestion for consideration,

Andrew


On 12-Jun. 10:59 a.m., Scott Barton wrote:
Correct.  The Raspberry Pi will be running a program that will take a picture 
every couple of seconds (the time between pictures taken will vary during the 
print) and save it to the local file system.  On that same Pi I would like to 
run Motion detection program that when a new image file is saved to the 
specified directory it would compare it to the previous file (or files if 
needed) to detect if there was motion via a noticeable difference in the image. 
 If it detects 'motion' then trigger an alert like an email or text or 
something.
Thanks!

________________________________
From: folkert <folk...@vanheusden.com><mailto:folk...@vanheusden.com>
Sent: Friday, June 12, 2020 2:43 AM
To: Scott Barton <scott_bar...@hotmail.com><mailto:scott_bar...@hotmail.com>
Cc: motion-user@lists.sourceforge.net<mailto:motion-user@lists.sourceforge.net> 
<><mailto:motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Using Motion to compare still images as they are 
captured

Scott,

Do you mean retrieving a jpeg from a filesystem and then compare that?

On Thu, Jun 11, 2020 at 06:48:45PM +0000, Scott Barton wrote:
> Is there a way to use the Motion detection software to detect major 
> differences between still images?  If not, can this feature be added?  I 
> believe there would be a significant demand for it.
>
> The use case for this is in 3D printing where when a print fails, it results 
> in a major change in the image, but normal printing just does nominal updates 
> that could easily be filtered out with the settings to the Motion software.   
> 3D Printers can use software called OctoLapse running on a Raspberry Pi that 
> takes pictures to make very smooth time lapse videos by positioning the bed 
> and printer head in the same spot for each picture after each layer is 
> printed. Because printed layer heights are very small the change from picture 
> to picture would be minimal during normal printing.  But when a print fails 
> it results in huge immediate changes in pictures.  Because 3D prints can take 
> several hours (even days) and are often done not under constant supervision, 
> when a print fails you can waste several hours and a lot of filament as the 
> 3D printer continues to print the failed print until noticed or finished.  
> Being able to detect a failed print and getting notified early on would be a 
> HUGE advantage for all 3D printers.
> https://plugins.octoprint.org/plugins/octolapse/
>
>
> Examples of timelapse 3D printing video fails.  You could see how Motion 
> detection software could fairly easily detect early on when the failure 
> occurs.  Just need a way for the software to compare images as the come in 
> (saved to a specific directory on the Raspberry Pi) instead of analyzing a 
> video stream.
> https://www.youtube.com/watch?v=ZGOq9X5J97k
> [https://i.ytimg.com/vi/ZGOq9X5J97k/maxresdefault.jpg]<https://www.youtube.com/watch?v=ZGOq9X5J97k>
> 3DBenchy Octolapse - Fail<https://www.youtube.com/watch?v=ZGOq9X5J97k>
> 3DBenchy Octolapse - Fail
> www.youtube.com<http://www.youtube.com>
>
>
> https://www.youtube.com/watch?v=_8YT0j8UAI0
> [https://i.ytimg.com/vi/_8YT0j8UAI0/maxresdefault.jpg]<https://www.youtube.com/watch?v=_8YT0j8UAI0>
> EPIC 3D PRINTER PETG FAIL! filmed with Octolapse | 
> JanTec<https://www.youtube.com/watch?v=_8YT0j8UAI0>
> one of my first timelapses for YouTube videos - a fail! :( 3d printer - 
> JanTec - Epic 3d printer fail
> www.youtube.com<http://www.youtube.com>
>
> -Scott
>
>
> [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>      Virus-free. 
> www.avg.com<http://www.avg.com><http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>


> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net<mailto: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



Folkert van Heusden

--
Feeling generous? -> http://www.vanheusden.com/wishlist.php
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, 
www.vanheusden.com<http://www.vanheusden.com>

[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png]<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
     Virus-free. 
www.avg.com<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>




_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net<mailto: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





_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net<mailto: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
-------------- 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 168, Issue 34
********************************************

Reply via email to