kjanko / python-fingerprint-recognition Goto Github PK
View Code? Open in Web Editor NEWFingerprint recognition with OpenCV
Fingerprint recognition with OpenCV
I try to run the code in terminal but its not running and if I give path then many modules are not present and what do we have to write in os.chdir...please share a screenshot on how to run and does it return feature matrix?
Can I have the CMD to pass on the terminal so that I can execute the code
i have the next error in terminal:
Traceback (most recent call last):
File "app.py", line 109, in
main()
File "app.py", line 77, in main
kp1, des1 = get_descriptors(img1)
File "app.py", line 45, in get_descriptors
img = image_enhance.image_enhance(img)
File "C:\Users\Jacozsz\Downloads\python-fingerprint-recognition-master\enhance\i
mage_enhance.py", line 15, in image_enhance
normim,mask = ridge_segment(img,blksze,thresh); # normalise the
image and find a ROI
File "C:\Users\Jacozsz\Downloads\python-fingerprint-recognition-master\enhance\r
idge_segment.py", line 61, in ridge_segment
rows,cols = im.shape;
AttributeError: 'NoneType' object has no attribute 'shape'
original code :
gabor_filter = np.array(np.zeros((180/angleInc,filt_rows,filt_cols)));
should be :
gabor_filter = np.array(np.zeros((180//angleInc,filt_rows,filt_cols)));
hi
here is steps i follow:
git clone https://github.com/kjanko/python-fingerprint-recognition.git
cd python-fingerprint-recognition
docker build -t finger:latest .
docker run -it finger:latest 101_1.tif 101_2.tif
this will produce following error:
Traceback (most recent call last):
File "/app/app.py", line 1, in <module>
import cv2
File "/usr/local/lib/python3.7/site-packages/cv2/__init__.py", line 5, in <module>
from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
I tried to run the code on raspberry pi, the value of score/len(matches) is different there.
when i run this code on anaconda3 the value is 46 but i receive 15 in raspberry pi.
PSA: all the python idle, libraries are same
How to modify kjanko to speed up for fingerprint matching ? If you have upgrade or method anything, you help to recommend, Please.
Traceback (most recent call last):
File "app.py", line 111, in
main()
File "app.py", line 76, in main
kp1, des1 = get_descriptors(img1)
File "app.py", line 45, in get_descriptors
img = image_enhance.image_enhance(img)
File "C:\Users\Pavilion\Downloads\python-fingerprint-recognition-master\python-fingerprint-recognition-master\enhance\image_enhance.py", line 15, in image_enhance
normim,mask = ridge_segment(img,blksze,thresh); # normalise the image and find a ROI
File "C:\Users\Pavilion\Downloads\python-fingerprint-recognition-master\python-fingerprint-recognition-master\enhance\ridge_segment.py", line 61, in ridge_segment
rows,cols = im.shape;
AttributeError: 'NoneType' object has no attribute 'shape'
when I gives 2nd image of database as input image then it shows not matched ,please help me out of this
I am getting a error I think its related with input , how did you define your image selecting . I am trying in terminal python3 --101_1.tif
File "C:/Users/BBO/Desktop/python-fingerprint-recognition-master/app.py", line 44
img = clahe.apply(img)
^
Hi Kristijan Jankoski,
I was looking at the enhance functions in your code and found that you have obtained the code from my repository https://github.com/Utkarsh-Deshmukh/Fingerprint-Enhancement-Python
I would really appreciate if you would either fork this from the original directory or cite the original repository in your documentation.
File "app.py", line 45, in get_descriptors
img = image_enhance.image_enhance(img)
File "C:\Users\Pavilion\Downloads\python-fingerprint-recognition-master\python-fingerprint-recognition-master\enhance\image_enhance.py", line 35,
in image_enhance
newim = ridge_filter(normim, orientim, freq, kx, ky); # create gabor filter and do the actual filtering
File "C:\Users\Pavilion\Downloads\python-fingerprint-recognition-master\python-fingerprint-recognition-master\enhance\ridge_filter.py", line 83,
in ridge_filter
x,y = np.meshgrid(np.linspace(-sze,sze,(2sze + 1)),np.linspace(-sze,sze,(2sze + 1)));
File "<array_function internals>", line 6, in linspace
File "C:\Users\Pavilion\PycharmProjects\office\venv\lib\site-packages\numpy\core\function_base.py", line 121, in linspace
.format(type(num)))
TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
Can you please explain how can I get the percentage of matching score?
And also how much is the accuracy of your method?
x, y = np.meshgrid(np.linspace(-sze, sze, (2 * sze + 1)), np.linspace(-sze, sze, (2 * sze + 1)))
File "<array_function internals>", line 6, in linspace
File "C:\Users\ICY media\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\core\function_base.py", line 121, in linspace
.format(type(num)))
TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
I can't make it work, please tell me witch version of OpenCV2 are you using.
Here are all
https://sourceforge.net/projects/opencvlibrary/
Hi, not an issue, just a request. Any chance to have the documentation translated into English?
Thanks.
def ridge_orient(im, gradientsigma, blocksigma, orientsmoothsigma):
Could you please explain in more details about the parameters that are being passed in this function or can you provide any documentation related to this topic .
Thanking you..
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.