Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FingerprintMatcher match always returns 0 #64

Open
felislynx-silae opened this issue Jan 5, 2024 · 1 comment
Open

FingerprintMatcher match always returns 0 #64

felislynx-silae opened this issue Jan 5, 2024 · 1 comment

Comments

@felislynx-silae
Copy link

I've scanned 2 fingerprints (Left Index and Left Middle), I've then converted Bitmap to byteArray (PNG, 100% quality, 500dpi).
I've checked matching for LI - LM, LM-LI, LI-LI and LM-LM. And matcher always returns 0.

fun verify(source: ByteArray, probe: ByteArray): Double {
        val sf = FingerprintImage(source,
            FingerprintImageOptions().apply {
                dpi(500.0)
            })
        val pf = FingerprintImage(probe,
            FingerprintImageOptions().apply {
                dpi(500.0)
            })
        val sft = FingerprintTemplate(sf)
        val pft = FingerprintTemplate(pf)
        val matcher = FingerprintMatcher(pft)
        val result = matcher.match(sft)
        return result
    }
@robertvazan
Copy link
Owner

There's nothing wrong with the code you posted. Double-check the images. Zero score for self-match indicates no minutiae were found in the image. You can confirm that by opening the template using cbor.me. Then check the PNG images for low contrast and other obvious issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants