GPhoto
Libgphoto2是實現訪問數碼相機的核心庫,它為Digikam、gphoto2等應用程式提供接口。當前版本的官方支持列表在這裏。這份列表比較保守,某些相機其實也能工作。
本文闡述如何配置libgphoto2
,以便訪問數碼相機。某些數碼相機可以直接按U盤模式掛載,無需libghoto2。
安裝[編輯 | 編輯原始碼]
安裝 軟件包 libgphoto2包。可選的包還有 gphoto2包,提供了命令行界面。
前端程序[編輯 | 編輯原始碼]
- darktable — Utility to organize and develop raw images.
- Entangle — Provides a graphical interface for 「tethered shooting」, aka taking photographs with a digital camera completely controlled from the computer.
- gphotofs — Fuse module to mount camera as a filesystem.
- GTKam — Graphical GTK+ 2 front-end to gphoto2.
- gvfs-gphoto2 — gphoto2 backend for GVfs to mount camera as a filesystem from a file manager that supports GVfs such as GNOME Files, Nemo, PCManFM and Thunar.
- Kamera — KDE integration for gphoto2 cameras.
- Pantheon Photos — Image viewer for Pantheon.
- Rawstudio — An open source raw-image converter written in GTK+. Supports tethered shooting with gphoto2.
GPhoto2用法[編輯 | 編輯原始碼]
GPhoto2是libgphoto2的命令行版客戶端,它可以讓用戶從終端或者腳本中訪問libgphoto2,從而操作數碼相機。另外,GPhoto2也為驅動開發者提供了方便的調試功能。
常用操作
gphoto2 --list-ports
gphoto2 --auto-detect
gphoto2 --summary
gphoto2 --list-files
gphoto2 --get-all-files
更高級的文件操作
gphoto2 --shell
使用 gvfs[編輯 | 編輯原始碼]
用下面命令檢測連接的攝像頭和端口:
$ gphoto2 --auto-detect Model Port ---------------------------------------------------------- Canon Digital IXUS 980 IS usb:006,011
在文件管理器中使用下面地址進行訪問: "gphoto2://[usb:006,011]" - 攝像頭會被 gvfs 掛載並通過文件管理器進行管理。
權限問題[編輯 | 編輯原始碼]
有本地會話的用戶會通過 ACLs 獲得攝像頭權限,有問題請查看 General troubleshooting#Session permissions。