secugen_rs

Crates.iosecugen_rs
lib.rssecugen_rs
version0.2.0
sourcesrc
created_at2023-11-23 10:50:48.828946
updated_at2023-11-24 12:40:55.348684
descriptionRust bindings for the SecuGen SDK
homepage
repository
max_upload_size
id1045986
size4,879,296
mdrokz (mdrokz)

documentation

README

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

[dependencies]
secugen_rs = "0.2.0"

Usage

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!");
}
LD_LIBRARY_PATH=/usr/local/lib/ cargo run
Commit count: 0

cargo fmt