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

Create fingerprint template it's too slow #2

Closed
zNexTage opened this issue Jan 17, 2020 · 2 comments
Closed

Create fingerprint template it's too slow #2

zNexTage opened this issue Jan 17, 2020 · 2 comments

Comments

@zNexTage
Copy link

Hello,
So, I'm using your library in a Java Android application and I'm having the following problem, the Create () function of the FingerprintTemplate method is very slow and sometimes my application closes while executing this method.

*Code snippet

listBiometria = conSql.returnAllBiometry();

FingerprintTemplate candidate = new FingerprintTemplate();
candidate.dpi(500);
candidate.create(img);

for(Biometry biometry : listBiometria)
{
    FingerprintTemplate probe = new FingerprintTemplate()
            .dpi(500)
            .create(biometry.getBiometria());

    score = new FingerprintMatcher()
            .index(probe)
            .match(candidate);
}

And for my bad luck I need to use this method inside a loop, which makes things even more slow.

@robertvazan
Copy link
Owner

This is sourceafis-net project. Your issue belongs in sourceafis-java.

Android feature extractor performance is indeed poor. Improvements are possible. Meantime it is recommended to use a recent device with solid floating-point performance.

In any case, you shouldn't be looping over images like that. Perform feature extraction after image acquisition and subsequently cache the template like the tutorial says.

@zNexTage
Copy link
Author

Thanks for the answer and forgiveness for posting the question in the wrong place. Anyway, I will read the manual again and try to make some adjustments.

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