Skip to content

Commit

Permalink
temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Utkarsh-Deshmukh committed Dec 7, 2020
1 parent 294f43d commit e4f92f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ src/__pycache__/removeSpuriousMinutiae.cpython-36.pyc
src/__pycache__/getTerminationBifurcation.cpython-36.pyc
.idea/
venv/
*.pyc
Binary file added enhanced/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 8 additions & 5 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit e4f92f7

Please sign in to comment.