It's the python implementation of paper Zhu, En & Guo, Xifeng & Yin, Jianping. (2016). Walking to Singular Points of Fingerprints. Pattern Recognition. 56. 10.1016/j.patcog.2016.02.015.
Opencv, numpy and scipy
Put your images in test_images directory and check results in results directory. Make changes in line-24 and line-42 of example.py accordingly!
...
#line-24 is
im = cv2.imread('img_path',0)
...
...
#line-42 is
cv2.imwrite('path_to_save_img.ext', stacked_img) # ext = png, jpg, bmp, tif
...
Then run the following command in terminal
python example.py
Ridge Orient and Ridge Segment functions are taken from github repo Fingerprint-Enhancement-Python written by Utkarsh Deshmukh. The other functions are python implementation of Peter Kovesi's matlab functions.
The author would like to thank Dr. Peter Kovesi (This code is a python implementation of his work). The author would also like to thank Mr. Nagasai Bharat for his contribution on code structuring.