-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_cli.py
More file actions
46 lines (37 loc) · 1.06 KB
/
Copy pathapp_cli.py
File metadata and controls
46 lines (37 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# app_cli.py
import capture_faces
import train_faces
import recognize_and_mark
import view_attendance
def register_student():
capture_faces.register_student()
def train_model():
train_faces.train_model()
def take_attendance():
recognize_and_mark.recognize_and_mark_attendance()
def view_records():
view_attendance.view_attendance()
def main():
while True:
print("Face Recognition Attendance System")
print("1. Register New Student")
print("2. Train Face Recognizer")
print("3. Take Attendance")
print("4. View Attendance")
print("5. Exit")
choice = input("Please select an option: ")
if choice == '1':
register_student()
elif choice == '2':
train_model()
elif choice == '3':
take_attendance()
elif choice == '4':
view_records()
elif choice == '5':
print("Exiting the system.")
break
else:
print("Invalid option. Please try again.")
if __name__ == "__main__":
main()