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

False positives in FPS_Enroll.ino #29

Open
joecayse opened this issue Jul 28, 2016 · 1 comment
Open

False positives in FPS_Enroll.ino #29

joecayse opened this issue Jul 28, 2016 · 1 comment
Assignees
Labels

Comments

@joecayse
Copy link

When using the FPS_Enroll.ino sketch in a project of mine, I noticed that I would get false positives while enrolling prints. For example, I would scan my index finger twice, then my thumb for the third scan. I receive "Enrolling Successful" because Enroll3() returns a 0. It seems this function has no regard to the previous two scans, so it returns a 0 only because it read a finger correctly, not because it actually enrolled a complete profile.

What I did to overcome this was simple. At the beginning of the enrollment process, I use the GetEnrollCount() function to query the number of enrollments saved in the FPS and save it as a variable enrollcount. Following Enroll3(), I use GetEnrollCount() a second time and save it as newenrollcount.

By comparing newenrollcount to enrollcount, I can see if a new enrollment was actually saved (vs just checking if three scans were successful) because newenrollcount will be a greater number.

@JoshHawley
Copy link
Contributor

That is a great idea. I will see about updating the code for the Enroll sample.

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

No branches or pull requests

3 participants