# GPhoto (简体中文)

From ArchWiki
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.

相关文章

- Jalbum

翻译状态：本文是 Libgphoto2 的翻译。上次翻译日期：2018-07-13。如果英文版本有所更改，则您可以帮助同步翻译。

Libgphoto2是实现访问数码相机的核心库，它为Digikam、gphoto2等应用程序提供接口。当前版本的官方支持列表在这里。这份列表比较保守，某些相机其实也能工作。

本文阐述如何配置`libgphoto2`，以便访问数码相机。某些数码相机可以直接按U盘模式挂载，无需libghoto2。

## 安装

安装 软件包 libgphoto2。可选的包还有 gphoto2，提供了命令行界面。

### 前端程序

- darktable — Utility to organize and develop raw images.

  https://darktable.org/ || darktable

- digiKam — Digital photo management application for KDE.

  https://www.digikam.org/ || digikam

- Entangle — Provides a graphical interface for “tethered shooting”, aka taking photographs with a digital camera completely controlled from the computer.

  https://entangle-photo.org/ || entangleAUR

- gphotofs — Fuse module to mount camera as a filesystem.

  http://www.gphoto.org/proj/gphotofs/ || gphotofsAUR

- gThumb — Image browser and viewer for GNOME.

  https://wiki.gnome.org/gthumb || gthumb

- GTKam — Graphical GTK+ 2 front-end to gphoto2.

  http://www.gphoto.org/proj/gtkam/ || gtkamAUR

- 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.

  https://wiki.gnome.org/Projects/gvfs || gvfs-gphoto2

- Kamera — KDE integration for gphoto2 cameras.

  https://github.com/KDE/kamera || kamera

- Pantheon Photos — Image viewer for Pantheon.

  https://launchpad.net/pantheon-photos || pantheon-photos

- Rawstudio — An open source raw-image converter written in GTK+. Supports tethered shooting with gphoto2.

  https://rawstudio.org/ || rawstudioAUR

- Shotwell — Digital photo organizer designed for GNOME.

  https://wiki.gnome.org/Apps/Shotwell || shotwell

## 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。

## 参阅

- gPhoto 支持的摄像头列表
- 更详细的列表

Category:

- Digital imaging (简体中文)