Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdrokz/secugen_rs
Rust bindings to secugen fingerprint scanner SDK
https://github.com/mdrokz/secugen_rs
bindgen biometrics crates-io ffi ffi-bindings fingerprint-scanner rust rust-cpp rust-ffi-bindings secugen
Last synced: 2 days ago
JSON representation
Rust bindings to secugen fingerprint scanner SDK
- Host: GitHub
- URL: https://github.com/mdrokz/secugen_rs
- Owner: mdrokz
- License: gpl-3.0
- Created: 2023-11-16T08:22:26.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-01-22T21:52:59.000Z (10 months ago)
- Last Synced: 2024-05-01T16:29:16.452Z (7 months ago)
- Topics: bindgen, biometrics, crates-io, ffi, ffi-bindings, fingerprint-scanner, rust, rust-cpp, rust-ffi-bindings, secugen
- Language: C
- Homepage:
- Size: 2.71 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# secugen_rs
[![Docs](https://docs.rs/secugen_rs/badge.svg)](https://docs.rs/secugen_rs)
[![Crates.io](https://img.shields.io/crates/v/secugen_rs.svg?maxAge=2592000)](https://crates.io/crates/secugen_rs)The rust bindings to the secugen SDK allow you to use Secugen fingerprint scanner line of products https://secugen.com/products/#fingerprint
## Installation
```toml
[dependencies]
secugen_rs = "0.2.0"
```## Usage
```rust
use secugen_rs::sgfpm::FPM;fn main() {
let mut fpm = FPM::new();let res = fpm.init_device(None, None, None, None);
match res {
Ok(_) => println!("Device initialized"),
Err(e) => println!("Error: {}", e),
}let res = fpm.capture_image();
match res {
Ok(b) => println!("Image captured {:?}",b),
Err(e) => println!("Error: {}", e),
}println!("Hello, world!");
}
``````bash
LD_LIBRARY_PATH=/usr/local/lib/ cargo run
```