rust-touptek is a binding for the ToupLite library, which allows to grab images from CMOS instrumentation cameras such as those used in AmScope microscopes.
The ToupLite SDK, installable as a component of ToupLite for Linux or OS X.
See the capture_png.rs example. You can run
it from a source tree using cargo run --example capture_png
.
Note that the example code requires the following dependencies
to be specified in Cargo.toml
:
[dependencies]
png = { git = "https://github.com/servo/rust-png" }
simd = { git = "https://github.com/huonw/simd" }