Re: Getting a hook from shell mode to do motion detection?

Tomas Alonso <[email protected]>
Newsgroups gmane.comp.multimedia.gphoto.user
Message-ID <100979760.RHj35LcvVt@alonso-desktop>
El Viernes, 29 de diciembre de 2017 17:39:08 Alan Corey escribió:
> I want to set up a wildlife camera, so I've read a few articles about
> it.  I've been practicing with an old Canon PowerShot S70 and it seems
> suitable.  What I'd like to try to do is use the preview images for
> motion detection.  I need to mask out some areas to avoid false
> activations from clouds passing over, that sort of stuff, and probably
> some averaging to account for the sun rising and setting.
> 
> For speed it seems advisable to work in Gphoto2's shell mode but I'm
> trying to figure out a way to provide input from an external program.
> I want to do capture-preview in a loop: get a preview, run my compare
> program, get another preview.  If the compare sees something go into
> another loop grabbing big images for some amount of time, then back to
> previews.
> 
> I did help in shell mode but I don't see anything listed that looks
> like it would work, like being able to detect the presence of some
> file I could use a a semaphore.  There aren't any branch (or loop)
> instructions either.
> 
>   Alan

Hello Alan,

For other needs related to security I'm also interested in doing something 
equivalent. I thought my first try would be 

http://www.chriswpage.com/2009/05/setup-an-advanced-webcam-security-system-with-ubuntu-8-04-and-motion/

using the motion program under Linux. It allows to launch scripts when motion 
is detected, but you need a webcam for motion detection and a camera for good 
quality shots. That's (and the fact I own a Canon 40D) why I'm not sure at all 
about the webcam approach.

I have high programming skills and experience with gphoto so to implement this 
myself will not be a problem. If you can't find a solution for your case just 
send me the exact gphoto commands you use for your camera to enter shell mode, 
take a preview, and take also a big image in auto mode or whatever you use 
(including the file names generated in your computer after executing those 
commands).

Can't promise to do it for a given date but likely it will take few weeks.

Regards,
Tomas.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.