Use digital cameras under Linux

xiaoxiao2021-03-06  41

In fact, there is no good use, just take a photo from the camera. Oh, the content is originally contained in my unleashed, which is the REV-0.053-Pre1, which will be released in 0.053. Follow the GNU FDL 1.2 release, pay attention to copyright.

The author is not very familiar with digital products, and digital camera products are indeed complicated. The lights that are all kinds of memory cards have been ignored, and the author also lacks the art cells of various cameras. Here we list the methods that most cameras can support. If your camera is unique, the person loves it.

The author has played a total of two digital cameras. The first one is Olympus, the author's roommate Wang Yin Bin (here is famous for their heartfelt thanks.), 10 times optical zoom, huh, this is pursuit Brother, but because of being busy, his camera's virgin is completed by the author, and it is also an intake of can't understand this camera. The collections are transmitted, and this camera accessed under Linux is very simple. It only needs to mount it like a U disk. So, this is actually an ideal state. If everyone's camera can be such, it is not a pleasure.

However, the author's own camera is not so lucky, this is a Kodak's DX6440, and the above is certainly can't be said. The author found that it cannot be accessed by accessing the U disk, but fortunately, Kung Fu pays off, I Finally found the solution, and it is the solution within Debian, there is no need to download anything elsewhere. This answer is what -gphoto2.

This section introduces GPhoto2 and derived tools and its use, then describes how to let the camera can plug and play.

GPhoto2 family

As I said above, not all cameras can be readily read like a U disk. Conversely, different cameras and computer interactive flows are different, which greatly hinders digital cameras to be linux User is used. However, the open source community is never dressed up to these difficulties. GPhoto2 is such a project family, and they offer the gphoto2 and basic libraries to achieve the reading and writing process of various cameras, and provide a series of convenient command lines. And graphics interfaces such that Linux users can easily use digital cameras. GPhoto2 supported camera has more than 500 kinds of cameras, which will not be listed here. Anyway, the author does not need to use this fraud fee, and friends who want to know can go to their website to learn.

GPhoto provides a convenient client program to allow users of different needs to access digital cameras, including:

GPhoto2 This is the basic client, the command line program, although it is unable, but the function is rich and practical. If the user who does not install X or command line lovers, it is a good choice. GTKAM uses GTK2 graphical client, graphical operation interface, support preview function, good-looking, Figure 1 is a screenshot of GTKAM, you can see a simple, intuitive operation interface, is still very comfortable (especially for The author does not have any pursuit users).

(The picture is not posted, I can't help it)

All of this can be installed directly through the APT, which is very convenient. Here, the only beauty is probably because gphoto is a procedure dealing with hardware, so only root can be used, and we usually use sudo tools, even if you use sudo tools, it is too trouble, the next section will introduce how to let GPhoto2 / GTKAM can be used directly by ordinary users and can plug and play. Digital camera is inserted

The truth is that for digital cameras using the USB interface, we can make GTKAM to play out when inserting the camera, and do not need to switter users. The entire setup process can be found in the User Guide, here is given a presentation.

When we use the APT to install GPhoto2's basic library libgphoto2-2, a configuration file has been installed: / etc / hotplug / usb / libgphoto2, and after a simple process, we can easily use the digital camera. First of all

Host: ~ # / usr / lib / libgphoto2 / print-usb-usermap> /etc/hotplug/usb/usbcam.usermap

generate

USBCAM.USERMAP file. Then, look

/ usr / share / doc / libgphoto2-2 / linux-hotplug / below several scripts, separately for different applications, the author

USBCAM.X11-APP copies

/ etc / hotplug / usb / named USBCAM, and the user's User is changed from root to GNAWUX, which is the commonly used username, so that the author will automatically pop up GTKAM for the author when connecting the camera cable. Now, add execution permissions to USBCAM, great job.

Ok, try your digital camera can't work! It's that simple. More content Refer to the user guide, more than a point more than the author, of course, he is not aimed at Debian users, it is more complicated than us. Official website: http://www.gphoto.org/ User Manual: http://www.gphoto.org/doc/manual/

转载请注明原文地址:https://www.9cbs.com/read-75839.html

New Post(0)