This post show how to control DSLR (Nikon D7000) with Raspberry Pi 2 (running Raspbian Jessie), using Python 2, with libgphoto2 and piggyphoto. The camera connect to Raspberry Pi via USB.
piggyphoto is a Python bindings for libgphoto2. You have to install libgphoto2.
To install piggyphoto for Python 2, enter the command:
$ sudo apt-get install python-piggyphoto
Try in Python 2:
import piggyphoto C = piggyphoto.camera() print C.abilities C.capture_preview('prev.jpg') C.capture_image('image.jpg')