Fixed the check up error.
|
@ -2,7 +2,6 @@ import os
|
||||||
import DBHelper
|
import DBHelper
|
||||||
from joblib import Parallel, delayed
|
from joblib import Parallel, delayed
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
|
||||||
import Facial_Recognition_Enrollment
|
import Facial_Recognition_Enrollment
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,6 +30,7 @@ def update():
|
||||||
os.makedirs("Photos_of_Thieves/Thief_" + str(count))
|
os.makedirs("Photos_of_Thieves/Thief_" + str(count))
|
||||||
Parallel(n_jobs=multiprocessing.cpu_count())(
|
Parallel(n_jobs=multiprocessing.cpu_count())(
|
||||||
delayed(download_parallel_thief_photos)(i, count) for i in range(50))
|
delayed(download_parallel_thief_photos)(i, count) for i in range(50))
|
||||||
|
print("Thief_" + str(count) + " is detected at " + DBHelper.get_time("Thief_" + str(count)) + ", " + DBHelper.get_date("Thief_" + str(count)))
|
||||||
print("Thief data is checked.")
|
print("Thief data is checked.")
|
||||||
except:
|
except:
|
||||||
print("No Thieves are registered.")
|
print("No Thieves are registered.")
|
||||||
|
|
12
DBHelper.py
|
@ -223,5 +223,17 @@ def upload_thief_data(thief_id, date, time):
|
||||||
db.child("Thieves").child(thief_id).set(data)
|
db.child("Thieves").child(thief_id).set(data)
|
||||||
|
|
||||||
|
|
||||||
|
# Returns the e-mail or else an empty string.
|
||||||
|
def get_time(thief_id):
|
||||||
|
email = db.child("Thieves").child(str(thief_id)).child("Time").get().val()
|
||||||
|
return email
|
||||||
|
|
||||||
|
|
||||||
|
# Returns the phone or else an empty string.
|
||||||
|
def get_date(thief_id):
|
||||||
|
phone = db.child("Thieves").child(str(thief_id)).child("Date").get().val()
|
||||||
|
return phone
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
upload_data("User_3", "RandomFirst", "RandomLast", "Random@gmail.com", "0000000000")
|
upload_data("User_3", "RandomFirst", "RandomLast", "Random@gmail.com", "0000000000")
|
||||||
|
|
BIN
Photos_of_Thieves/Thief_1/0.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Photos_of_Thieves/Thief_1/1.jpg
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
Photos_of_Thieves/Thief_1/10.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Photos_of_Thieves/Thief_1/11.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/12.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/13.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/14.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/15.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/16.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/17.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/18.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/19.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/2.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
Photos_of_Thieves/Thief_1/20.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/21.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/22.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/23.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/24.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/25.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/26.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/27.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/28.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/29.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/3.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
Photos_of_Thieves/Thief_1/30.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/31.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/32.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/33.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/34.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/35.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/36.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/37.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/38.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/39.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/4.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Photos_of_Thieves/Thief_1/40.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
Photos_of_Thieves/Thief_1/41.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/42.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/43.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/44.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/45.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/46.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/47.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/48.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/49.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
Photos_of_Thieves/Thief_1/5.jpg
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
Photos_of_Thieves/Thief_1/6.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Photos_of_Thieves/Thief_1/7.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Photos_of_Thieves/Thief_1/8.jpg
Normal file
After Width: | Height: | Size: 43 KiB |
BIN
Photos_of_Thieves/Thief_1/9.jpg
Normal file
After Width: | Height: | Size: 43 KiB |