2020-11-07 03:57:24 +00:00
|
|
|
import DBHelper
|
2021-01-24 15:55:36 +00:00
|
|
|
import Facial_Recognition_Inference
|
2020-11-07 03:57:24 +00:00
|
|
|
|
2020-11-07 02:59:40 +00:00
|
|
|
|
|
|
|
def start():
|
2021-01-25 02:15:54 +00:00
|
|
|
# It checks if a user is registered then starts the Facial Recognition Software.
|
2020-11-07 03:57:24 +00:00
|
|
|
users = DBHelper.db.child("Users").get()
|
|
|
|
count = 0
|
2021-01-25 02:15:54 +00:00
|
|
|
for user in users.each():
|
|
|
|
count += 1
|
|
|
|
if count != 0:
|
2021-02-10 15:51:05 +00:00
|
|
|
print("Initializing the Face Recognition Software...")
|
2021-01-25 02:15:54 +00:00
|
|
|
Facial_Recognition_Inference.inference()
|
|
|
|
else:
|
|
|
|
print("No Users exist for Facial Recognition Software.")
|
2020-11-18 02:56:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2020-12-03 16:30:49 +00:00
|
|
|
DBHelper.set_power("on")
|
2020-12-04 22:46:37 +00:00
|
|
|
start()
|