GPhoto2-rs
Rust bindings to libgphoto2
Features
- Camera
- Capture images
- Download images
- Get port information
- Get abilities (model, driver stability, permissions, ...)
- Read configuration
- Set configuration
- Usb port information (TODO)
- Interact with filesystem on camera (TODO)
- Context
- Autodetect camera
- Get list of available cameras
- Get camera by model and port
Gettings started
Installation
Run cargo add gphoto2 to add gphoto2 to your project or add this to your Cargo.toml:
[]
= "0.1"
Install libgphoto2
The libgphoto2 library must be installed on your system to use this library.
To install libgphoto2 on Debian based systems run:
On Arch systems run:
On MacOs systems with Homebrew run:
Basic Usage
This example takes a picture and saves it to disk
use Context;
use Path;
You can find more examples here
License
Copyright © 2022 Maxicarlos08 maxicarlos08@gmail.com
This library uses the libgphoto2 library, which is
licensed under the LGPL version 2.1.