-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME.md
89 lines (58 loc) · 1.82 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Nitgen Hamster III Module for Python 2.7.x and 3.x
Digital fingerprint reader module for Python using Nitgen device.
Install the driver that is the "driver" directory.
## Acknowledgments
Thanks to [Fingertech](http://www.fingertech.com.br) for all support and investment,
without this partnership it would not be possible to maintain this project.
## Install Nitgen Hamster driver
```bash
$ sudo apt-get install g++ gcc linux-headers build-essential make python-dev autotools-dev libicu-dev libbz2-dev
$ git clone https://github.com/paulopinda/python-nbiobsp.git
$ cd python-nbiobsp
$ cd utils/libs
$ # Install libs
$ sudo cp NBioBSP.lic /lib
$ sudo cp libs/linux_<x86_x64/x86>/libNBioBSP.so /lib
$ # Install driver
$ cd hamster-iii
$ tar -xzvf ngstardrv-...# choose 32 or 64bits
$ cd ngstardrv-...
$ ./CreateModule
$ sudo ./install.sh
```
## Message: 'required key not available'
I had a problem loading kernel module and the following message appeared:
'required key not available'. I used mokutil to disable secure boot mode.
```bash
$ sudo mokutil --disable-validation
```
Reboot and change boot state.
## Install from Pypi
```bash
$ pip install pynbiobsp
$ test_fingerprint.py # for tests.
```
## Install from Github
```bash
$ git clone https://github.com/paulopinda/python-nbiobsp.git
$ cd python-nbiobsp
$ pip install pybind11
$ python setup.py build install
```
## Example
Simple example who capture two fingerprints and validate.
```python
import pynbiobsp as pnbio
pnbio.init()
print('Insert the first fingerprint: ')
fir1 = pnbio.capture(10000)
print('Insert the second fingerprint: ')
fir2 = pnbio.capture(10000)
if pnbio.match(fir1, fir2):
print('OK!')
else:
print('NOK!')
pnbio.close()
```
## Contribute
If anything is missing from the code or the README.md documentation, please send me a PULL REQUEST.