GPhoto

出自 Arch Linux 中文维基

本文或本節需要翻譯。要貢獻翻譯,請訪問簡體中文翻譯團隊

附註: A few updates have happened on the English page since last translation.(在 Talk:GPhoto# 中討論)

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
  • gphotofsFuse module to mount camera as a filesystem.
http://www.gphoto.org/proj/gphotofs/ || gphotofsAUR
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
  • KameraKDE 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
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

參閱[編輯 | 編輯原始碼]