Re: Getting a hook from shell mode to do motion detection?
Alan Corey <[email protected]>
| Newsgroups | gmane.comp.multimedia.gphoto.user |
|---|---|
| Message-ID | <CAOh3dDZinkLcuQw3B=AhWzvd0cQR2NKEThnAVH7tq0ohHE6Q4Q@mail.gmail.com> |
Interesting, I hadn't thought about Java, but I'm on a Raspberry Pi so
the ARM chip might be reasonably fast at it.
I tried it on the S70 and it looks like at some outer level it detects
it, then says it can't initialize. I tried it on my Nikon D5200 but
I'm having trouble with my Nikon cable and it didn't work at all.
Nice idea making the mask as characters, I wasn't sure how I was going
to handle that. I'm still stuck in double pointer hell but I haven't
worked on it in a few days.
upstairs# sh exec.sh
Reading UPDATE_REF 3600 // sec, -1 => never update reference (int)
Reading RESAMPLE 320 // width, -1 => no resample (int)
Reading THRESHOLD_BR 10 // brightness % change to trigger global movement (int)
Reading THRESHOLD_PX 10 // brightness % change to trigger pixel movement (int)
Reading MOVING_PIX_PER 5 // % of pixels with gray level change greater
than threshold to trigger local movement (int)
Reading FPS -2 // fps of live view, < 0 for <1 fps (-2 =>
0.5 fps) (int)
Reading NSHOTS 3 // number of shots to take after detecting
movement (int)
Reading MAX_SHOTS 1000 // maximum number of shots to take (int)
Reading EXTENSION .jpg // extension in lowercase for the new relevant images
Reading RENAME true // true to rename shots to 'shot_xxx.jpg',
false otherwise
Reading SERVER null // server to uppload images
Reading USER null // user login name
Reading PASSW null // user password
Reading REMOTE_DIR null // remote dir inside the server to store the
images (or null)
Reading MASK // image mask to detect movement (- =>
masked, + => detect movement here). Any size, must be last element in
config file
Using gphoto 2.5.15 (libgphoto2 2.5.16)
Detected cameras:
Canon Powershot S70 (PTP mode) usb:001,019
Exception in jparsec.io.device.implementation.GPhotoCamera.: The
camera cannot be found or initialized properly.
Please check you have gphoto2 installed, and it is in manual (M) mode.
Turn it off/on and check again.
jparsec.util.JPARSECException: The camera cannot be found or
initialized properly.
Please check you have gphoto2 installed, and it is in manual (M) mode.
Turn it off/on and check again.
at jparsec.io.device.implementation.GPhotoCamera.<init>(GPhotoCamera.java:296)
at research.other.GPhotoMoveDetection.main(GPhotoMoveDetection.java:141)
On 1/5/18, Tomás Alonso <[email protected]> wrote:
> I wrote a simple, very preliminar program in Java to shot/analize previews,
>
> detect movement and trigger shots. It has some config options to adapt it to
>
> different cases, including to set a mask, but no GUI. I tested it yesterday
> a
> few minutes at home with a Canon 40D and worked fine, although the
> change from preview to shot mode and back is slow and can be improved.
> The default values I use seems to work fine but they probably need to be
> changed for other cases.
>
> In my 40D I need to set the camera to manual mode, and in manual mode I
> set the shutter speed, iso and other properties to the adequate values to
> get good shots. The program, at startup, reads those properties and then
> run gphoto reseting the same values (it is by design since the gphoto
> control
> code is inside a main library I use for astrophoto, and the default values I
>
> set there are very different), something that works at least with the 40D.
> There is an option to uppload the images to a server, but I didn't test it.
>
> May work for your camera, even in some Nikons. Feel free to download and
> try it, zip file with source (inside the .jar files) at:
>
> http://conga.oan.es/%7Ealonso/intruderDetector.zip
>
> Regards,
> Tomas.
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gphoto-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gphoto-user
>
--
-------------
No, I won't call it "climate change", do you have a "reality problem"? - AB1JX
Impeach Impeach Impeach Impeach Impeach Impeach Impeach Impeach
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gphoto-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gphoto-user