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

From ArchWiki
Jump to: navigation, search
m (Fengchao moved page Digital Cameras (简体中文) to Libgphoto2 (简体中文): Move as English page.)
(Translate.)
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
{{Related|Jalbum}}
 
{{Related|Jalbum}}
 
{{Related articles end}}
 
{{Related articles end}}
{{TranslationStatus (简体中文)|Digital_Cameras|2014-05-28|317217}}
+
{{TranslationStatus (简体中文)|Libgphoto2|2018-07-13|529363}}
本文阐述如何配置{{ic|libgphoto2}},以便访问数码相机。某些数码相机可以直接按U盘模式挂载,无需libghoto2。
+
[http://www.gphoto.org/proj/libgphoto2/ Libgphoto2]是实现访问数码相机的核心库,它为Digikam、gphoto2等应用程序提供接口。当前版本的官方支持列表在[http://www.gphoto.org/proj/libgphoto2/support.php 这里]。这份列表比较保守,某些相机其实也能工作。
 +
 
 +
本文阐述如何配置{{ic|libgphoto2}},以便访问数码相机。某些数码相机可以直接按[[USB storage devices|U盘模式]]挂载,无需libghoto2。
 +
 
 +
== 安装 ==
 +
[[pacman|安装]] 软件包 {{Pkg|libgphoto2}}。可选的包还有 {{Pkg|gphoto2}},提供了命令行界面。
 +
 
  
== libgphoto2 ==
+
=== 前端程序 ===
[http://www.gphoto.org/proj/libgphoto2/ Libgphoto2]是实现访问数码相机的核心库,它为Digikam、gphoto2等应用程序提供接口。当前版本的官方支持列表在[http://www.gphoto.org/proj/libgphoto2/support.php 这里]。这份列表比较保守,某些相机其实也能工作。
+
 
+
* {{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}}}}
用户可以直接从[[official repositories|官方软件源]][[pacman|安装]]{{Pkg|libgphoto2}}。可选的包还有{{Pkg|gvfs-gphoto2}}以及{{Pkg|gphoto2}}。前者提供了Nautilus整合功能,后者提供了命令行界面。
+
* {{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用法 ==
 
GPhoto2是libgphoto2的命令行版客户端,它可以让用户从终端或者脚本中访问libgphoto2,从而操作数码相机。另外,GPhoto2也为驱动开发者提供了方便的调试功能。
 
GPhoto2是libgphoto2的命令行版客户端,它可以让用户从终端或者脚本中访问libgphoto2,从而操作数码相机。另外,GPhoto2也为驱动开发者提供了方便的调试功能。
  
Line 30: Line 44:
 
* {{ic|gphoto2 --shell}}
 
* {{ic|gphoto2 --shell}}
  
====其它前端程序====
+
=== 使用 gvfs  ===
* [http://www.gphoto.org/proj/gphotofs/ gphotofs]
+
用下面命令检测连接的摄像头和端口:
* [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
 +
 
 +
在文件管理器中使用下面地址进行访问: "gphoto2://[usb:006,011]" - 摄像头会被 gvfs 挂载并通过文件管理器进行管理。
 +
 
 +
== 权限问题 ==
 +
 
 +
有本地会话的用户会通过 [[Wikipedia:Access control list|ACLs]] 获得摄像头权限,有问题请查看 [[General troubleshooting#Session permissions]]
 +
 
 +
== 参阅 ==
  
==排除故障==
+
* [http://www.gphoto.org/proj/libgphoto2/support.php gPhoto 支持的摄像头列表]
===组===
+
* [http://www.teaser.fr/~hfiguiere/linux/digicam.html 更详细的列表]
v2.14.13以前的版本,用户需要加入camera组,以后的版本改为[[Users and groups#Groups|storage group]]{{Broken section link}}。
 

Latest revision as of 04:51, 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

使用 gvfs

用下面命令检测连接的摄像头和端口:

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

在文件管理器中使用下面地址进行访问: "gphoto2://[usb:006,011]" - 摄像头会被 gvfs 挂载并通过文件管理器进行管理。

权限问题

有本地会话的用户会通过 ACLs 获得摄像头权限,有问题请查看 General troubleshooting#Session permissions

参阅