Vehicle-Anti-Theft-Face-Rec.../start_engine.py

21 lines
536 B
Python
Raw Normal View History

2020-11-07 03:57:24 +00:00
import DBHelper
import Facial_Recognition_Inference
2020-11-07 03:57:24 +00:00
2020-11-07 02:59:40 +00:00
def start():
# 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
for user in users.each():
count += 1
if count != 0:
print("Initializing the Face Recognition Software...")
Facial_Recognition_Inference.inference()
else:
print("No Users exist for Facial Recognition Software.")
2020-11-18 02:56:47 +00:00
if __name__ == "__main__":
DBHelper.set_power("on")
2020-12-04 22:46:37 +00:00
start()