Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fingerprint enhancement in Python

I'm doing fingerprints recognition as a project for computer vision classes in Python.

For preprocessing of the images I used Gabor filter, then Gaussian blur, then Otsu binarization and I got something like this (original image on the left, processed on the right):

First photo - original, second - after preprocessing

Then I'm doing skeletonization and I think that the image is too detailed. I would like to get something like this (the first image is the one I have now, second - the one I would like to get):

First image is the one I have now, second - the one I would like to get

When I did thining on the second picture, it looked much better than on the image I have now. Do you have any ideas what I can do using OpenCV and Python to achieve that (to get an image similar to the one on the right)?

I would like to especially get rid of those little thorns and to smooth the edges.

like image 383
Natalia Avatar asked Dec 19 '25 09:12

Natalia


1 Answers

It seems you got inverted binary image after Otsu, ridges became valleys.

Those small lines you want to remove, are actually gaps along ridge lines, which should be removed by gabor. You can apply Gabor filter again or adjust the parameter.

like image 124
Ziming Song Avatar answered Dec 21 '25 23:12

Ziming Song



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!