-
Notifications
You must be signed in to change notification settings - Fork 0
/
driver.py
33 lines (32 loc) · 970 Bytes
/
driver.py
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
import server
import facerec
import enroll
import sys
print("*************************************")
print("*************************************")
print("To run continuous video stream: press 1")
print("To run facial recognition: press 2")
print("To add face to list of known faces: press 3")
print("To exit: press q")
print("-------------------------------------")
while True:
response = input()
if response == "1":
print("Continuous stream booting...")
server.run()
if response == "2":
print("Facial recognition booting...")
facerec.run()
if response == "3":
print("Enrollment booting...")
enroll.main()
if response == "q":
print("Shutting down...")
sys.exit()
else:
print("-------------------------------------")
print("To run continuous video stream: press 1")
print("To run facial recognition: press 2")
print("To add face to list of known faces: press 3")
print("To exit: press q")
print("-------------------------------------")