網頁

顯示具有 gphoto 標籤的文章。 顯示所有文章
顯示具有 gphoto 標籤的文章。 顯示所有文章

2017年3月10日 星期五

Arduino Yun Graphoto2 2.5.2

cd /tmp
wget http://www.ibuyopenwrt.com/images/gphoto2_2.5.2-1_ar71xx.ipk
wget http://www.ibuyopenwrt.com/images/libgphoto2-drivers_2.5.2-1_ar71xx.ipk
wget http://www.ibuyopenwrt.com/images/libgphoto2_2.5.2-1_ar71xx.ipk
opkg update
opkg install libgphoto2_2.5.2-1_ar71xx.ipk
opkg install gphoto2_2.5.2-1_ar71xx.ipk
opkg install libgphoto2-drivers_2.5.2-1_ar71xx.ipk

參考網站 Arduino Yun Gphoto2 2.5.2

2017年2月23日 星期四

Compiling gphoto in raspberry pi

sudo apt-get install automake
sudo apt-get install autopoint
sudo apt-get install gettext
sudo apt-get install libtool
sudo apt-get install libusb-dev
sudo apt-get install libpopt-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libexif-dev

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

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

LD_LIBRARY_PATH=/usr/local/lib;export LD_LIBRARY_PATH
alias sudo='sudo env LD_LIBRARY_PATH=$LD_LIBRARY_PATH'

gphoto2 --version


2016年12月19日 星期一

gphoto

# pacman -S gphoto2
$ bzip2 -d gphoto2-2.5.11.tar.bz2
$ tar xvf gphoto2-2.5.11.tar
$ bzip2 -d libphoto2-2.5.11.tar.bz2
$ tar xvf libphoto2-2.5.11.tar

$ gphoto2 --list-ports
$ gphoto2 --auto-detect
USB PTP Class Camera  usb:001,005
$ gphoto2 --capture-image
$ gphoto2 --capture-image-and-download --no-keep
$ gphoto2 --port usb:001,005 --reset
$ gphoto2 --list-cameras|grep EOS
$ gphoto2 --port usb:001,005 --summary
$ gphoto2 --port usb:001,005 --list-config
/main/actions/manualfocusdrive
/main/settings/datetime
/main/status/cameramodel
/main/status/lensname
/main/status/eosserialnumber
/main/imgsettings/iso
/main/capturesettings/continuousaf
/main/capturesettings/autoexposuremode
/main/capturesettings/aperture
/main/capturesettings/shutterspeed
/main/capturesettings/aeb
$ gphoto2 --port usb:001,005 --get-config datetime
$ gphoto2 --port usb:001,005 --set-config datetime=now
$ gphoto2 --port usb:001,005 --set-config-index shutterspeed=45

$ gphoto2 --auto-detect|grep "usb:"|awk {'print $4'}