diff --git a/.gitignore b/.gitignore index 86a0cea..94d875e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ src/__pycache__/removeSpuriousMinutiae.cpython-36.pyc src/__pycache__/getTerminationBifurcation.cpython-36.pyc .idea/ venv/ +*.pyc diff --git a/enhanced/3.jpg b/enhanced/3.jpg new file mode 100644 index 0000000..0b26560 Binary files /dev/null and b/enhanced/3.jpg differ diff --git a/src/main.py b/src/main.py index 8a777f4..8d06cf1 100644 --- a/src/main.py +++ b/src/main.py @@ -17,14 +17,14 @@ import skimage.morphology import skimage -from getTerminationBifurcation import getTerminationBifurcation; -from removeSpuriousMinutiae import removeSpuriousMinutiae -from CommonFunctions import ShowResults -from extractMinutiaeFeatures import extractMinutiaeFeatures +from src.getTerminationBifurcation import getTerminationBifurcation; +from src.removeSpuriousMinutiae import removeSpuriousMinutiae +from src.CommonFunctions import ShowResults +from src.extractMinutiaeFeatures import extractMinutiaeFeatures if __name__ == "__main__": - img = cv2.imread('../enhanced/1.jpg',0); + img = cv2.imread('../enhanced/3.jpg',0); img = np.uint8(img>128); skel = skimage.morphology.skeletonize(img) @@ -37,6 +37,9 @@ RP = skimage.measure.regionprops(minutiaeTerm) minutiaeTerm = removeSpuriousMinutiae(RP, np.uint8(img), 10); + minutiaeTerm = skimage.measure.label(minutiaeTerm, connectivity=2); + RP2 = skimage.measure.regionprops(np.uint8(minutiaeTerm)) + ''' minutiaeBif = skimage.measure.label(minutiaeTerm, connectivity=2); RP = skimage.measure.regionprops(minutiaeTerm)