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

20 lines
532 B
Python

import DBHelper
import Facial_Recognition_Inference
def start():
# It checks if a user is registered then starts the Facial Recognition Software.
users = DBHelper.db.child("Users").get()
count = 0
for user in users.each():
count += 1
if count != 0:
print("Starting the Face Recognition Software...")
Facial_Recognition_Inference.inference()
else:
print("No Users exist for Facial Recognition Software.")
if __name__ == "__main__":
DBHelper.set_power("on")
start()