Updated the Remove_Face template.
This commit is contained in:
parent
744ba93e42
commit
0e0c1d2ce8
1 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,14 @@
|
|||
import DBHelper
|
||||
|
||||
def remove_your_face(firstname, lastname, email, phone):
|
||||
def remove_your_face():
|
||||
users = DBHelper.db.child("Users").get()
|
||||
try:
|
||||
count = 0
|
||||
for user in users.each():
|
||||
count += 1
|
||||
DBHelper.upload_data("User_" + str(count), firstname, lastname, email, phone)
|
||||
Facial_Recognition_Registration.register_your_face("User_" + str(count))
|
||||
for i in range(20):
|
||||
DBHelper.upload_user_photo("User_" + str(count) + "/" + str(i) + ".jpg")
|
||||
except:
|
||||
print("No Users are registered.")
|
Loading…
Reference in a new issue