Daugman implementation to segement iris and pupil
Project description
irisSeg
Segementation of iris and pupil.
Daugman algorithm:
where I(x,y) is the eye image, r is the radius to searches over the image (x,y), G(r) is a Gaussian smoothing function. The algorithm starts to search from the pupil, in order to detect the changing of maximum pixel values (partial derivative).
Installation
pip install irisSeg
Usage
from irisSeg import irisSeg
import matplotlib.pyplot as plt
#
# you can also view using the argument in irisSeq function
#
coord_iris, coord_pupil, output_image = irisSeg('UBIRIS_200_150_R/Sessao_1/1/Img_1_1_1.jpg', 40, 70)
print(coord_iris) # radius and the coordinates for the center of iris
print(coord_pupil) # radius and the coordinates for the center of pupil
plt.imshow(output_image)
plt.show()
use as a commandline tool
>>iris-seg file_path min_radius max_radius
References
https://www.diva-portal.org/smash/get/diva2:831173/FULLTEXT01.pdf
https://uk.mathworks.com/matlabcentral/fileexchange/15652-iris-segmentation-using-daugman-s-integrodifferential-operator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
irisSeg-0.3.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for irisSeg-0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e610eee8143358703487ce771ecf72f6a73afbbb77e1b4cf5c88f19734c26db |
|
MD5 | 989dc1e75dc1f9003b9d13a27ba29540 |
|
BLAKE2b-256 | 37e410849f5a50e76d57796027f64086224f6eae254f275a1015074c4c1c6beb |