Nikon D3300 delay before taking a shot
Kostis Andrikopoulos <[email protected]>
| Newsgroups | gmane.comp.multimedia.gphoto.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I am a new user, and i have been trying to control my Nikon DSLR with gphoto. Specifically, i use the python3 bindings [0] for libgphoto2. My problem is that between the time that the capture function is called, and the actual time that the camera shoots, there is a slight delay. Is this expected behaviour? Can fix this? I include the script i am using. Cheers, Kostis [0]: https://pypi.python.org/pypi/gphoto2 ------------------------------------------------------------------------------ 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
test.py
(text/x-python, 261 B)
import gphoto2 as gp
camera = gp.Camera()
ctx = gp.Context()
camera.init(ctx)
_ = input("press enter to capture")
cap = camera.capture(gp.GP_CAPTURE_IMAGE, ctx)
photo = camera.file_get(cap.folder, cap.name, gp.GP_FILE_TYPE_NORMAL, ctx)
photo.save("test.NEF")