libgphoto2 is a cross-platform digital camera library, and gphoto2 is a command-line client for it. The collection of tools is extensive and used by many programs to talk to cameras. Abilities include camera identification and image capture for many cameras.