I am using NetBeans IDE for development. After I cloned the project from bitcucket and imported the project I noticed it had to download some dependencies at first build.
At the moment the matching algorithm works fine but I'm concerned about the total time it takes to execute - I observe an average run time of 6-7 secs for 1:1 matching.
Below is my code:
/**Tochangethislicenseheader,chooseLicenseHeadersinProjectProperties.*Tochangethistemplatefile,chooseTools|Templates*andopenthetemplateintheeditor.*/packagecom.machinezoo.sourceafis;//importjava.nio.file.Path;importjava.nio.file.Files;importjava.nio.file.Paths;importjava.io.IOException;/****@authordunsin*/publicclassFingerPrintRun{publicstaticvoidmain(String[]parms){try{System.out.println("Starting Test..");byte[]probeImage=Files.readAllBytes(Paths.get("/Users/dunsin/desktop/test4.png"));byte[]candidateImage=Files.readAllBytes(Paths.get("/Users/dunsin/desktop/test3.png"));FingerprintTemplateprobe=newFingerprintTemplate().dpi(500).create(probeImage);FingerprintTemplatecandidate=newFingerprintTemplate().dpi(500).create(candidateImage);doublescore=newFingerprintMatcher().index(probe).match(candidate);doublethreshold=40;booleanmatches=score>=threshold;System.out.println("Result of Fingerprint verification - Similarity score is "+score+" and match is "+matches);}catch(IOExceptionexception){System.out.println("Exception is "+exception);}}}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using NetBeans IDE for development. After I cloned the project from bitcucket and imported the project I noticed it had to download some dependencies at first build.
At the moment the matching algorithm works fine but I'm concerned about the total time it takes to execute - I observe an average run time of 6-7 secs for 1:1 matching.
Below is my code:
This benchmark has numerous issues:
Last edit: Robert Važan 2019-06-28