ephraim / node-fprint Goto Github PK
View Code? Open in Web Editor NEWThis nodejs node is a wrapper around the libfprint library.
License: MIT License
This nodejs node is a wrapper around the libfprint library.
License: MIT License
On Ubuntu 20.04, the only package avaible to install is libfprint-2-2
and libfprint-2-dev
. Are those supposed to be compatible? Because I would assume not since npm i node-fprint
fails.
First of all I've like to congrats you for this node wrap.
I'm working on a platform with a principal machine (server) and have some raspberries(clients) conected with my fingerprint lectors (Digital Persona U.are.U) where I'm expecting to have at least 500 different users. With the enrollStart() I'm saving the fingerprint String on a database, and when I need to Identify someone I create an Array as you have on the example. I see that the identifyStart() needs this array and when you put the finger in compares, but Is there a way with this library where I can read only the fingerprint on my client, and send it to the server and compare it there?
Thanks for your help and happy holidays!
I have tried to use this library on windows 10 but when i run the installation command i end up at getting following error:-
Call to 'pkg-config --libs libfprint' returned exit status -1073741701 while in binding.gyp. while trying to load binding.gyp
excute this command,
npm install node-fprint
below are the error log
[email protected] install /root/node_modules/node-fprint
node-gyp rebuild
Package libfprint was not found in the pkg-config search path.
Perhaps you should add the directory containing libfprint.pc' to the PKG_CONFIG_PATH environment variable No package 'libfprint' found gyp: Call to 'pkg-config --libs libfprint' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:
gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.6.3-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/node_modules/node-fprint
gyp ERR! node -v v6.3.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.
npm ERR! Linux 4.6.3-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "--save" "install" "node-fprint"
npm ERR! node v6.3.0
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-fprint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-fprint
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-fprint
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
Hi, do you guys know whats the problem ?
throw err
^
Error: Could not locate the bindings file. Tried:
→ C:\Users\Conceito 05\Desktop\node-fprint\build\fingerprint.node
→ C:\Users\Conceito 05\Desktop\node-fprint\build\Debug\fingerprint.node
→ C:\Users\Conceito 05\Desktop\node-fprint\build\Release\fingerprint.node
→ C:\Users\Conceito 05\Desktop\node-fprint\out\Debug\fingerprint.node
→ C:\Users\Conceito 05\Desktop\node-fprint\Debug\fingerprint.node
→ C:\Users\Conceito 05\Desktop\node-fprint\out\Release\fingerprint.node
→ C:\Users\Conceito 05\Desktop\node-fprint\Release\fingerprint.node
→ C:\Users\Conceito 05\Desktop\node-fprint\build\default\fingerprint.node
→ C:\Users\Conceito 05\Desktop\node-fprint\compiled\8.4.0\win32\x64\fingerprint.node
at bindings (C:\Users\Conceito 05\Desktop\node-fprint\node_modules\bindings\bindings.js:93:9)
at Object. (C:\Users\Conceito 05\Desktop\node-fprint\index.js:1:95)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
@ephraim @NathanaelA @ahenager @mctrp
Hi all
I'm using a digital persona device but many times identify service return identify-retry-scan results automatically we do not understand why it is happening.
please help me.
Hi Ephraim,
First of all, thank you for porting the fprint library to nodejs and node-red!
As part of my never ending quest to automate my home I am trying to set up a Digital Persona u.are.u 4500 fingerprint reader on a Raspberry Pi 2 running Raspbian Jessie. However I've run into a problem and I don't know how to solve it. Whenever I try to the code and try to enroll/verify a fingerprint I receive the following error:
pi@raspberrypi:~/node_modules/node-fprint/test $ node verify.js Found: Digital Persona U.are.U 4000/4000B/4500 enroll your finger! You will need swipe your finger 1 times. stage 1/1 uru4000:info [init_run_state] Versions 0010 and 0115
----presents finger on reader----
FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope Aborted
Do you have any idea what is causing this exception and/or how to solve it?
Kind regards,
Marcel
node-fprint: 0.0.6
node-red-contrib-fprint: 0.0.4
Nodejs: 4.4.3-1
Raspbian Jessie Lite, March 2016
Kernel version: 4.4
i'm using nodejs 8.11.3 and when i try to run fprint.identifyStart i get a segmentation fault error and it stops working
is this possible add these functions on next release ?
fp_dev_img_capture (struct fp_dev *dev, int unconditional, struct fp_img **image)
fp_dev_get_img_width (struct fp_dev *dev)
fp_dev_get_img_height (struct fp_dev *dev)
Hello,
So much appreciation for your giving the world this library! We used it in a major project some two years ago, and it was awesome; it helped greatly. Thank you!
1. The Challenge
We currently have a good number of stored fingerprints captured/enrolled with this library, encoded with the toString
function. The decoding function fromString
would be needed to return them to raw bytes, for identification/verification.
2. Assistance/Help Request
Since this library won't work with the latest version of libfprint
(currently at v2), can you please give a lead/clue as to how the fromString(...)
function can be implemented in either python/JavaScript? A pseudo-code could go a long way, please.
3. Why needed
Having the fromString(...)
function in any of those two languages will allow us revert the stored fingerprint data to raw bytes, and then use them in our identification/verification routines implemented with libfprint-2-2 (with python/javascript binding). Our team isn't too good with C++.
Thanks and regards, please.
Foluso.
Before i get too deep here, I am trying to understand if this can be packaged into an electron app and be used across platforms. Is this possible?
Could you please create an example on how to use this API? I have no clue at all.
Thanks,
When I spend 54 or more fingerprints for identifyStart function, it does not turn on my reader, maybe an overflow of fingerprints? kk
Hi,
I get the following error when I try to run the install command (npm install node-red-contrib-fprint). What I did wrong? Please advice, thank you. Regards, Les:
pi@raspberrypi:~/.node-red $ npm install node-red-contrib-fprint
> [email protected] install /home/pi/.node-red/node_modules/node-fprint
> node-gyp rebuild
Package libfprint was not found in the pkg-config search path.
Perhaps you should add the directory containing `libfprint.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libfprint' found
gyp: Call to 'pkg-config --libs libfprint' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.14.50-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/node-fprint
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2018-08-22T07_06_08_919Z-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.