Code Monkey home page Code Monkey logo

fingerprint_recognition's People

Contributors

cuevas1208 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fingerprint_recognition's Issues

TypeError: 'numpy.float64' object cannot be interpreted as an integer

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'

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

'NoneType' object has no attribute 'copy'

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'

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'

 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

Issue At raspberry pi 4(Runing python3.9)

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)

help

1_LM_Card_6
can you remove those noise and enhance this fingerprint

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.