GPhoto (简体中文)
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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。