Difference between revisions of "Libgphoto2 (简体中文)"

From ArchWiki
Jump to: navigation, search
(Update translatin.)
(Update translation.)
Line 12: Line 12:
  
 
本文阐述如何配置{{ic|libgphoto2}},以便访问数码相机。某些数码相机可以直接按[[USB storage devices|U盘模式]]挂载,无需libghoto2。
 
本文阐述如何配置{{ic|libgphoto2}},以便访问数码相机。某些数码相机可以直接按[[USB storage devices|U盘模式]]挂载,无需libghoto2。
+
 
 
== 安装 ==
 
== 安装 ==
用户可以直接从[[official repositories|官方软件源]][[pacman|安装]]{{Pkg|libgphoto2}}。可选的包还有{{Pkg|gvfs-gphoto2}}以及{{Pkg|gphoto2}}。前者提供了Nautilus整合功能,后者提供了命令行界面。
+
[[pacman|安装]] 软件包 {{Pkg|libgphoto2}}。可选的包还有 {{Pkg|gphoto2}},提供了命令行界面。
  
==GPhoto2用法==
+
 
 +
=== 前端程序 ===
 +
 
 +
* {{App|[[Wikipedia:darktable|darktable]]|Utility to organize and develop raw images.|http://darktable.org/|{{Pkg|darktable}}}}
 +
* {{App|[[Digikam|digiKam]]|Digital photo management application for [[KDE]].|https://www.digikam.org/|{{Pkg|digikam}}}}
 +
* {{App|Entangle|Provides a graphical interface for “tethered shooting”, aka taking photographs with a digital camera completely controlled from the computer.|https://entangle-photo.org/|{{AUR|entangle}}}}
 +
* {{App|gphotofs|[[Fuse]] module to mount camera as a filesystem.|http://www.gphoto.org/proj/gphotofs/|{{AUR|gphotofs}}}}
 +
* {{App|[[Wikipedia:GThumb|gThumb]]|Image browser and viewer for [[GNOME]].|http://wiki.gnome.org/gthumb|{{Pkg|gthumb}}}}
 +
* {{App|GTKam|Graphical [[GTK+]] 2 front-end to gphoto2.|http://www.gphoto.org/proj/gtkam/|{{AUR|gtkam}}}}
 +
* {{App|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|{{Pkg|gvfs-gphoto2}}}}
 +
* {{App|Kamera|[[KDE]] integration for gphoto2 cameras.|https://github.com/KDE/kamera|{{Pkg|kamera}}}}
 +
* {{App|Pantheon Photos|Image viewer for Pantheon.|https://launchpad.net/pantheon-photos|{{Pkg|pantheon-photos}}}}
 +
* {{App|[[Wikipedia:Rawstudio|Rawstudio]]|An open source raw-image converter written in GTK+. Supports tethered shooting with gphoto2.|https://rawstudio.org/|{{AUR|rawstudio}}}}
 +
* {{App|[[Wikipedia:Shotwell (software)|Shotwell]]|Digital photo organizer designed for [[GNOME]].|http://wiki.gnome.org/Apps/Shotwell|{{Pkg|shotwell}}}}
 +
 
 +
== GPhoto2用法 ==
 
GPhoto2是libgphoto2的命令行版客户端,它可以让用户从终端或者脚本中访问libgphoto2,从而操作数码相机。另外,GPhoto2也为驱动开发者提供了方便的调试功能。
 
GPhoto2是libgphoto2的命令行版客户端,它可以让用户从终端或者脚本中访问libgphoto2,从而操作数码相机。另外,GPhoto2也为驱动开发者提供了方便的调试功能。
  
Line 29: Line 44:
 
* {{ic|gphoto2 --shell}}
 
* {{ic|gphoto2 --shell}}
  
===其它前端程序===
+
=== Example usage with gvfs  ===
* [http://www.gphoto.org/proj/gphotofs/ gphotofs]
+
Auto detect the connected camera and list the required port:
* [http://darktable.org/ darktable]
+
 
* [[Digikam]]
+
$ gphoto2 --auto-detect
* [http://f-spot.org/ F-Spot]
+
Model                          Port                                           
* [http://live.gnome.org/gthumb Gthumb]
+
----------------------------------------------------------
* [http://www.gphoto.org/proj/gtkam/ GTKam]
+
Canon Digital IXUS 980 IS      usb:006,011
 +
Now open your favorite file manager and enter the address with the found port detail "gphoto2://[usb:006,011]" - the camera will be mounted with gvfs and can be managed with the file manager.

Revision as of 04:40, 13 July 2018

翻译状态: 本文是英文页面 Libgphoto2翻译,最后翻译时间:2018-07-13,点击这里可以查看翻译后英文页面的改动。

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

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

安装

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


前端程序

  • darktable — Utility to organize and develop raw images.
http://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
http://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
http://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

Example usage with gvfs

Auto detect the connected camera and list the required port:

$ gphoto2 --auto-detect
Model                          Port                                            
----------------------------------------------------------
Canon Digital IXUS 980 IS      usb:006,011 

Now open your favorite file manager and enter the address with the found port detail "gphoto2://[usb:006,011]" - the camera will be mounted with gvfs and can be managed with the file manager.