luksan / pyfprint Goto Github PK
View Code? Open in Web Editor NEWPython bindings for the fprint fingerprint scanner library
Python bindings for the fprint fingerprint scanner library
Here is the code and output
import pyfprint
x = pyfprint.discover_devices()[0]
y=x.enroll_finger()
Output: swig/python detected a memory leak of type 'struct fp_print_data *', no destructor found.
I'm using pyfprint these days but I don't kown how to use the 'save_to_disk' method in pyfprint. I've already used 'save_to_file' method that saved an image. But I couldn't read the saved images, how could I get there ? Any help ?
ERROR: Failed building wheel for pyfprint
Running setup.py clean for pyfprint
Failed to build pyfprint
Installing collected packages: pyfprint
Running setup.py install for pyfprint ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/anaconda3/envs/finger/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"'; file='"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-record-7mmgmige/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/anaconda3/envs/finger/include/python3.8/pyfprint
cwd: /private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/
Complete output (40 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
creating build/lib.macosx-10.9-x86_64-3.8/pyfprint
copying pyfprint/pyfprint_swig.py -> build/lib.macosx-10.9-x86_64-3.8/pyfprint
copying pyfprint/pyfprint.py -> build/lib.macosx-10.9-x86_64-3.8/pyfprint
copying pyfprint/init.py -> build/lib.macosx-10.9-x86_64-3.8/pyfprint
running build_ext
building 'pyfprint._pyfprint_swig' extension
swigging pyfprint/pyfprint_swig.i to pyfprint/pyfprint_swig_wrap.c
swig -python -modern -o pyfprint/pyfprint_swig_wrap.c pyfprint/pyfprint_swig.i
Deprecated command line option: -modern. This option is now always on.
creating build/temp.macosx-10.9-x86_64-3.8
creating build/temp.macosx-10.9-x86_64-3.8/pyfprint
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/anaconda3/envs/finger/include -arch x86_64 -I/usr/local/anaconda3/envs/finger/include -arch x86_64 -I/usr/local/anaconda3/envs/finger/include/python3.8 -c pyfprint/pyfprint_swig_wrap.c -o build/temp.macosx-10.9-x86_64-3.8/pyfprint/pyfprint_swig_wrap.o
pyfprint/pyfprint_swig_wrap.c:1756:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, /* tp_print */
^
/usr/local/anaconda3/envs/finger/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE , int);
^
/usr/local/anaconda3/envs/finger/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
pyfprint/pyfprint_swig_wrap.c:1923:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, / tp_print */
^
/usr/local/anaconda3/envs/finger/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/usr/local/anaconda3/envs/finger/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
pyfprint/pyfprint_swig_wrap.c:2720:10: fatal error: 'libfprint/fprint.h' file not found
#include <libfprint/fprint.h>
^~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/anaconda3/envs/finger/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"'; file='"'"'/private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-req-build-ye3b_zqn/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/z7/wrqh6lzs4rn5wc5l6rktf_9m0000gp/T/pip-record-7mmgmige/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/anaconda3/envs/finger/include/python3.8/pyfprint Check the logs for full command output.
OS: macOS Catalina
Python: 3.8
Did this wrapper includes or has a way around to generate from image a xyt file?
https://github.com/freedesktop/libfprint/blob/master/libfprint/fpi-img.c#L313
I want to compare a single fingerprint minutiaei or file vs a database using bozorth3 algorithm. But i need to generate .xyt file in order to use the algorithm for comparing
https://www.nist.gov/services-resources/software/nist-biometric-image-software-nbis
Any help/suggestions?
Thanks in advance!
Hi there, I would like to incorporate your code into a project. For ease of deployment and portability, would it be possible to simply put the project into a folder and import it from there? I am familiar with Python, but I've never worked with Cython so I don't know where to start with this. I noticed there was an AUR package but unfortunately it is broken.
some segmentation fault onthe process of reading the fingerprint.
the same function using the C library doesn't gave me any errors.
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.