Digital fingerprint reader module for Python using Nitgen device. Install the driver that is the "driver" directory.
Thanks to Fingertech for all support and investment, without this partnership it would not be possible to maintain this project.
$ 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
I had a problem loading kernel module and the following message appeared: 'required key not available'. I used mokutil to disable secure boot mode.
$ sudo mokutil --disable-validation
Reboot and change boot state.
$ pip install pynbiobsp
$ test_fingerprint.py # for tests.
$ git clone https://github.com/paulopinda/python-nbiobsp.git
$ cd python-nbiobsp
$ pip install pybind11
$ python setup.py build install
Simple example who capture two fingerprints and validate.
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()
If anything is missing from the code or the README.md documentation, please send me a PULL REQUEST.