# Fingerprint-Enhancement-Python
Uses oriented gabor filter bank to enhance the fingerprint image. The orientation of the gabor filters is decided by the orientation of ridges in the input image.
## Installation and Running the tests
### method 1 - use the library
```
pip install fingerprint_enhancer
```
**Usage:**
```
import fingerprint_enhancer # Load the library
import cv2
img = cv2.imread('image_path', 0) # read input image
out = fingerprint_enhancer.enhance_fingerprint(img) # enhance the fingerprint image
cv2.imshow('enhanced_image', out); # display the result
cv2.waitKey(0) # hold the display window
```
- Alternatively, the script "src/example.py" can be used to run the example for this library.
### method 2 - use the source codes
1) go into the src folder
- if on "develop" branch, run the file "example.py"
- if on "master" branch, run the file file "main_enhancement.py"
2) The sample images are stored in the "images" folder
3) The enhanced image will be stored in the "enhanced" folder
## Linter check:
run the command `python devtool.py run` to run linter checks.
## important note:
The Develop Branch is what is up to date. Other branches might not be up to date.
## Results
![temp](https://cloud.githubusercontent.com/assets/13918778/25770604/637b3f38-31ee-11e7-818f-1f8359c96e07.jpg)
## Theory
- We use oriented gabor filters to enhance a fingerprint image. The orientation of the gabor filters are based on the orientation of the ridges. the shape of the gabor filter is based on the frequency and wavelength of the ridges.
## License
- This project is licensed under the BSD 2 License - see the LICENSE.md file for details
## Acknowledgements
- This program is based on the paper: Hong, L., Wan, Y., and Jain, A. K. 'Fingerprint image enhancement: Algorithm and performance evaluation'. IEEE Transactions on Pattern Analysis and Machine Intelligence 20, 8 (1998), pp 777-789.
- The author would like to thank Dr. Peter Kovesi (This code is a python implementation of his work)
Raw data
{
"_id": null,
"home_page": "https://github.com/Utkarsh-Deshmukh/Fingerprint-Enhancement-Python",
"name": "fingerprint-enhancer",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Fingerprint Image Enhancement",
"author": "utkarsh-deshmukh",
"author_email": "utkarsh.deshmukh@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/fb/38/2394cad384cb1837f1cbae86964c2fc3918f34e2e5fa3d39ffea2c75b858/fingerprint_enhancer-0.0.14.tar.gz",
"platform": null,
"description": "# Fingerprint-Enhancement-Python\r\n\r\nUses oriented gabor filter bank to enhance the fingerprint image. The orientation of the gabor filters is decided by the orientation of ridges in the input image. \r\n\r\n## Installation and Running the tests\r\n\r\n### method 1 - use the library\r\n ```\r\n pip install fingerprint_enhancer\r\n ```\r\n \r\n **Usage:**\r\n ```\r\n import fingerprint_enhancer\t\t\t\t\t\t\t\t# Load the library\r\n import cv2\r\n \r\n img = cv2.imread('image_path', 0)\t\t\t\t\t\t# read input image\r\n out = fingerprint_enhancer.enhance_fingerprint(img)\t\t# enhance the fingerprint image\r\n cv2.imshow('enhanced_image', out);\t\t\t\t\t\t# display the result\r\n cv2.waitKey(0)\t\t\t\t\t\t\t\t\t\t\t# hold the display window\r\n ```\r\n - Alternatively, the script \"src/example.py\" can be used to run the example for this library.\r\n\r\n### method 2 - use the source codes\r\n1) go into the src folder\r\n- if on \"develop\" branch, run the file \"example.py\"\r\n- if on \"master\" branch, run the file file \"main_enhancement.py\" \r\n\r\n2) The sample images are stored in the \"images\" folder\r\n\r\n3) The enhanced image will be stored in the \"enhanced\" folder\r\n\r\n## Linter check:\r\nrun the command `python devtool.py run` to run linter checks.\r\n\r\n## important note:\r\nThe Develop Branch is what is up to date. Other branches might not be up to date.\r\n\r\n\r\n## Results\r\n![temp](https://cloud.githubusercontent.com/assets/13918778/25770604/637b3f38-31ee-11e7-818f-1f8359c96e07.jpg)\r\n\r\n## Theory\r\n- We use oriented gabor filters to enhance a fingerprint image. The orientation of the gabor filters are based on the orientation of the ridges. the shape of the gabor filter is based on the frequency and wavelength of the ridges.\r\n\r\n## License\r\n- This project is licensed under the BSD 2 License - see the LICENSE.md file for details\r\n\r\n## Acknowledgements\r\n- This program is based on the paper: Hong, L., Wan, Y., and Jain, A. K. 'Fingerprint image enhancement: Algorithm and performance evaluation'. IEEE Transactions on Pattern Analysis and Machine Intelligence 20, 8 (1998), pp 777-789.\r\n\r\n- The author would like to thank Dr. Peter Kovesi (This code is a python implementation of his work)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "enhance fingerprint images",
"version": "0.0.14",
"project_urls": {
"Download": "https://github.com/Utkarsh-Deshmukh/Fingerprint-Enhancement-Python/archive/develop.zip",
"Homepage": "https://github.com/Utkarsh-Deshmukh/Fingerprint-Enhancement-Python"
},
"split_keywords": [
"fingerprint",
"image",
"enhancement"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fb382394cad384cb1837f1cbae86964c2fc3918f34e2e5fa3d39ffea2c75b858",
"md5": "8f11fe0e22a033d672006f88f1499a3b",
"sha256": "d033eaafd3332e783539e50b2643ee29da065cc2025a26a85d41e04239847840"
},
"downloads": -1,
"filename": "fingerprint_enhancer-0.0.14.tar.gz",
"has_sig": false,
"md5_digest": "8f11fe0e22a033d672006f88f1499a3b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 11186,
"upload_time": "2024-09-29T18:35:01",
"upload_time_iso_8601": "2024-09-29T18:35:01.698657Z",
"url": "https://files.pythonhosted.org/packages/fb/38/2394cad384cb1837f1cbae86964c2fc3918f34e2e5fa3d39ffea2c75b858/fingerprint_enhancer-0.0.14.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-29 18:35:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Utkarsh-Deshmukh",
"github_project": "Fingerprint-Enhancement-Python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "fingerprint-enhancer"
}