How to Control and Capture Images from DSLR using Raspberry Pi

Prerequisite

Install libgphoto2 and gphoto2

Prerequisites

sudo apt-get install git make autoconf libltdl-dev libusb-dev libexif-dev libpopt-dev libxml2-dev libjpeg-dev libgd-dev gettext autopoint

Install libghoto2

git clone https://github.com/gphoto/libgphoto2.git
cd ~/libgphoto2
autoreconf --install --symlink
./configure
make
sudo make install

Install ghoto2

git clone https://github.com/gphoto/gphoto2.git
cd ~/gphoto2
autoreconf --install --symlink
./configure
make
sudo make install
/usr/local/lib
sudo ldconfig
/usr/local/lib/libgphoto2/print-camera-list udev-rules version 201 group plugdev mode 0660 | sudo tee /etc/udev/rules.d/90-libgphoto2.rules
/usr/local/lib/libgphoto2/print-camera-list hwdb | sudo tee /etc/udev/hwdb.d/20-gphoto.hwdb

Using ghoto2

gphoto2 --auto-detect
gphoto2 --capture-image

Using Python Scripts

sudo pip install -v gphoto2

--

--

All my stories have moved to https://maskaravivek.com/

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store