cuevas1208 / fingerprint_recognition Goto Github PK
View Code? Open in Web Editor NEWAn implementations of fingerprint recognition algorithm
License: MIT License
An implementations of fingerprint recognition algorithm
License: MIT License
fingerprint_recognition/utils/poincare.py
Line 42 in 8821005
fingerprint_recognition/utils/poincare.py
Line 65 in 8821005
result = calculate_singularities(image, angles, 1, 16)
TypeError: calculate_singularities() missing 1 required positional argument: 'mask'
0%| | 0/80 [00:10<?, ?it/s]
Traceback (most recent call last):
File "finegerprint_piplineold.py", line 75, in
results = fingerprint_pipline(img)
File "finegerprint_piplineold.py", line 41, in fingerprint_pipline
gabor_img = gabor_filter(normim, angles, freq)
File "/home/pi/Desktop/saas/7777/jupyter Note books Works/2022/11/Git/fingerprint_recognition-master/utils/gabor_filter.py", line 43, in gabor_filter
array = np.linspace(-block_size,block_size,(2*block_size + 1))
File "<array_function internals>", line 6, in linspace
File "/usr/local/lib/python3.7/site-packages/numpy/core/function_base.py", line 120, in linspace
num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
error: OpenCV(4.6.0) /tmp/pip-wheel-8c7uejek/opencv-python_88dbbad412c5416b992ae69de26299d6/opencv/modules/imgproc/src/morph.simd.hpp:841: error: (-213:The function/feature is not implemented) Unsupported data type (=4) in function 'getMorphologyFilter'
Hardware : Raspberry pi 4 ,
Python3.7 and 3.9 Following Error
So I am trying to run the entire code using my own fingerprint dataset, however, I have been getting an error which I am not too sure how to debug. It is related to the Normalization.py and the fingerprint_pipeline.py file. The error I am getting is 'NoneType' object has no attribute 'copy'. This was the error message from the terminal. Could someone give me a hint on what i can do to debug please. Many thanks.
File "fingerprint_pipeline.py", line 69, in
results = fingerprint_pipline(img)
File "fingerprint_pipeline.py", line 19, in fingerprint_pipline
norm_img = normalize(input_img.copy(), float(100), float(100))
AttributeError: 'NoneType' object has no attribute 'copy'
10 #cv.imwrite('JupiterBase01.png', results)
/home/pi/Desktop/saas/7777/jupyter Note books Works/2022/11/Git/fingerprint_recognition-master/finegerprint_pipline.py in fingerprint_pipline(input_img)
29
30 # ROI and normalisation
---> 31 (segmented_img, normim, mask) = create_segmented_and_variance_images(normalized_img, block_size, 0.2)
32
33 # orientations
/home/pi/Desktop/saas/7777/jupyter Note books Works/2022/11/Git/fingerprint_recognition-master/utils/segmentation.py in create_segmented_and_variance_images(im, w, threshold)
49 # smooth mask with a open/close morphological filter
50 kernel = cv.getStructuringElement(cv.MORPH_ELLIPSE,(w2, w2))
---> 51 mask = cv.morphologyEx(mask, cv.MORPH_OPEN, kernel)
52 mask = cv.morphologyEx(mask, cv.MORPH_CLOSE, kernel)
53
error: OpenCV(4.6.0) /tmp/pip-wheel-8c7uejek/opencv-python_88dbbad412c5416b992ae69de26299d6/opencv/modules/imgproc/src/morph.simd.hpp:841: error: (-213:The function/feature is not implemented) Unsupported data type (=4) in function 'getMorphologyFilter'
Pi 3,4 Persion
0%| | 0/80 [00:10<?, ?it/s]
Traceback (most recent call last):
File "finegerprint_piplineold.py", line 75, in
results = fingerprint_pipline(img)
File "finegerprint_piplineold.py", line 41, in fingerprint_pipline
gabor_img = gabor_filter(normim, angles, freq)
File "/home/pi/Desktop/saas/7777/jupyter Note books Works/2022/11/Git/fingerprint_recognition-master/utils/gabor_filter.py", line 43, in gabor_filter
array = np.linspace(-block_size,block_size,(2*block_size + 1))
File "<array_function internals>", line 6, in linspace
File "/usr/local/lib/python3.7/site-packages/numpy/core/function_base.py", line 120, in linspace
num = operator.index(num)
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.