cameraunit-1.0.0 has been yanked.
cameraunit
cameraunit provides a well-defined and ergonomic API to write interfaces to capture frames from CCD/CMOS based
detectors through Rust traits cameraunit::CameraUnit and cameraunit::CameraInfo. The library additionally
provides the cameraunit::ImageData struct to obtain images with extensive metadata.
You can use cameraunit to:
- Write user-friendly interfaces to C APIs to access different kinds of cameras in an uniform fashion,
- Acquire images from these cameras in different pixel formats (using the
imagecrate as a backend), - Save these images to
FITSfiles (requires thecfitsioC library, and uses thefitsiocrate) with extensive metadata, - Alternatively, use the internal
image::DynamicImageobject to obtainJPEG,PNG,BMPetc.
Usage
Add this to your Cargo.toml:
[]
= "1.0.0"
and this to your source code:
use ;
Example
Since this library is mostly trait-only, refer to projects (such as cameraunit_asi) to see it in action.