forked from xxpauloxx/nodejs-nbiobsp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dependencies and added needed libs for windows
- Loading branch information
Showing
29 changed files
with
1,952 additions
and
1,708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,60 @@ | ||
# NBioBSP Module for Nodejs | ||
# NITGEN ENBSP Module for Nodejs | ||
|
||
Digital fingerprint reader module for Python using Nitgen device. | ||
Install the driver that is the "driver" directory. | ||
Digital fingerprint reader module for NodeJS using a Nitgen device. | ||
|
||
PS: I used the versions 0.12.5 and 0.10.25. | ||
Currently tested on Windows with NodeJS 16 (x86), Python 3.10 (x86) and VS 2019 (x64/x86) | ||
|
||
Based on the awesome work from [Paulo Roberto](https://github.com/xxpauloxx/nodejs-nbiobsp) | ||
|
||
## Usage: as dependency | ||
|
||
```bash | ||
git clone https://github.com/paulopinda/nodejs-nbiobsp.git | ||
cd nodejs-nbiobsp | ||
./setup.sh | ||
node test.js | ||
yarn add @viict/node-nitgen-enbsp | ||
|
||
``` | ||
#### Simple code | ||
|
||
```javascript | ||
const enbsp = require('@viict/node-nitgen-enbsp'); | ||
const init = enbsp.init(); | ||
|
||
if(init == true){ | ||
console.log("Insert the first fingerprint: "); | ||
const fir1 = enbsp.capture(4000); | ||
|
||
console.log("Insert the second fingerprint: "); | ||
const fir2 = enbsp.capture(4000); | ||
} | ||
|
||
console.log(`Match: `, enbsp.match(fir1, fir2)); | ||
enbsp.close() | ||
``` | ||
|
||
## Usage: cloning repo | ||
|
||
```bash | ||
git clone https://github.com/viict/node-nitgen-enbsp.git | ||
cd node-nitgen-enbsp | ||
yarn | ||
yarn test | ||
``` | ||
|
||
#### Simple code | ||
|
||
```javascript | ||
var nbiobsp = require('./build/Release/nbiobsp'); | ||
var init = nbiobsp.init(); | ||
const enbsp = require('./index.js'); | ||
const init = enbsp.init(); | ||
|
||
if(init == true){ | ||
console.log("Insert the first fingerprint: "); | ||
var fir1 = nbiobsp.capture(4000); | ||
const fir1 = enbsp.capture(4000); | ||
|
||
console.log("Insert the second fingerprint: "); | ||
var fir2 = nbiobsp.capture(4000); | ||
const fir2 = enbsp.capture(4000); | ||
} | ||
|
||
console.log(nbiobsp.match(fir1, fir2)); | ||
nbiobsp.close() | ||
console.log(`Match: `, enbsp.match(fir1, fir2)); | ||
enbsp.close() | ||
``` | ||
|
||
#### Any problem? Open a new issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const path = require('path'); | ||
|
||
exports = module.exports = require('node-gyp-build')(__dirname); | ||
|
||
const setSkin = exports.setSkin; | ||
// Override setSkin to use the DLLs we are providing on node_modules path | ||
exports.setSkin = function(skin) { | ||
if (skin.indexOf('/') === - 1 && skin.indexOf('\\') === -1) { | ||
return setSkin(path.join(__dirname, 'skins', skin)); | ||
} | ||
return setSkin(skin); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
{ | ||
"name": "nbiobsp", | ||
"version": "1.0.0", | ||
"description": "NBioBSP module for Nodejs.", | ||
"main": "test.js", | ||
"private": true, | ||
"name": "@viict/node-nitgen-enbsp", | ||
"version": "0.0.1", | ||
"description": "NITGEN eNBSP Node Module", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/viict/node-nitgen-enbsp.git" | ||
}, | ||
"keywords": ["nitgen", "node", "enbsp", "biometry", "fingerprint"], | ||
"author": "Victor Moura <[email protected]>", | ||
"license": "GPL", | ||
"bugs": { | ||
"url": "https://github.com/viict/node-nitgen-enbsp/issues" | ||
}, | ||
"homepage": "https://github.com/viict/node-nitgen-enbsp", | ||
"scripts": { | ||
"test": "node test.js" | ||
"test": "node test.js", | ||
"install": "node-gyp-build" | ||
}, | ||
"gypfile": true, | ||
"dependencies": { | ||
"bindings": "~1.2.1" | ||
"node-gyp-build": "^4.4.0" | ||
} | ||
} | ||
|
||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.