Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 1.11 KB

File metadata and controls

25 lines (22 loc) · 1.11 KB

SourceAFIS for Java

SourceAFIS is a fingerprint recognition engine that takes a pair of human fingerprint images and returns their similarity score. It can do 1:1 comparisons as well as efficient 1:N search. This is the Java implementation of the SourceAFIS algorithm.

byte[] probeImage = Files.readAllBytes(Paths.get("probe.jpeg"));
byte[] candidateImage = Files.readAllBytes(Paths.get("candidate.jpeg"));
FingerprintTemplate probe = new FingerprintTemplate()
	.dpi(500)
	.create(probeImage);
FingerprintTemplate candidate = new FingerprintTemplate()
	.dpi(500)
	.create(candidateImage);
double score = new FingerprintMatcher()
	.index(probe)
	.match(candidate);
boolean matches = score >= 40;