Adapted design based on an open source project
Let's look at the demo first, and then let's talk about the specific explanation...
Design database
The database is used to store punch-in information, etc.
Table logcat: used to store the real time, id, name, and whether it is late.
Table time: used to set the default school
timetable worker_info is used to store facial features, etc.
interface flow
Just entered the interface:
You can enter:
Student ID:
Repeated entry Warning:
Entering a new person: You
need to swipe your face to sign in, etc.: