diff --git a/Check_Up.py b/Check_Up.py index 32901354b..bf2706754 100644 --- a/Check_Up.py +++ b/Check_Up.py @@ -2,7 +2,6 @@ import os import DBHelper from joblib import Parallel, delayed import multiprocessing - import Facial_Recognition_Enrollment @@ -31,6 +30,7 @@ def update(): os.makedirs("Photos_of_Thieves/Thief_" + str(count)) Parallel(n_jobs=multiprocessing.cpu_count())( 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.") except: print("No Thieves are registered.") diff --git a/DBHelper.py b/DBHelper.py index 0c2e823f6..5c6673cd3 100644 --- a/DBHelper.py +++ b/DBHelper.py @@ -223,5 +223,17 @@ def upload_thief_data(thief_id, date, time): 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__": upload_data("User_3", "RandomFirst", "RandomLast", "Random@gmail.com", "0000000000") diff --git a/Facial_models/descriptors.npy b/Facial_models/descriptors.npy index 458f8be5f..92e3010aa 100644 Binary files a/Facial_models/descriptors.npy and b/Facial_models/descriptors.npy differ diff --git a/Facial_models/index.pkl b/Facial_models/index.pkl index 8b69409f3..dba118d62 100644 Binary files a/Facial_models/index.pkl and b/Facial_models/index.pkl differ diff --git a/Photos_of_Thieves/Thief_1/0.jpg b/Photos_of_Thieves/Thief_1/0.jpg new file mode 100644 index 000000000..999c6d1f3 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/0.jpg differ diff --git a/Photos_of_Thieves/Thief_1/1.jpg b/Photos_of_Thieves/Thief_1/1.jpg new file mode 100644 index 000000000..a4f2b9910 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/1.jpg differ diff --git a/Photos_of_Thieves/Thief_1/10.jpg b/Photos_of_Thieves/Thief_1/10.jpg new file mode 100644 index 000000000..43fe0c931 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/10.jpg differ diff --git a/Photos_of_Thieves/Thief_1/11.jpg b/Photos_of_Thieves/Thief_1/11.jpg new file mode 100644 index 000000000..2e52e83aa Binary files /dev/null and b/Photos_of_Thieves/Thief_1/11.jpg differ diff --git a/Photos_of_Thieves/Thief_1/12.jpg b/Photos_of_Thieves/Thief_1/12.jpg new file mode 100644 index 000000000..9408dcfb9 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/12.jpg differ diff --git a/Photos_of_Thieves/Thief_1/13.jpg b/Photos_of_Thieves/Thief_1/13.jpg new file mode 100644 index 000000000..096a5d4a7 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/13.jpg differ diff --git a/Photos_of_Thieves/Thief_1/14.jpg b/Photos_of_Thieves/Thief_1/14.jpg new file mode 100644 index 000000000..286cc8aea Binary files /dev/null and b/Photos_of_Thieves/Thief_1/14.jpg differ diff --git a/Photos_of_Thieves/Thief_1/15.jpg b/Photos_of_Thieves/Thief_1/15.jpg new file mode 100644 index 000000000..466d1d14e Binary files /dev/null and b/Photos_of_Thieves/Thief_1/15.jpg differ diff --git a/Photos_of_Thieves/Thief_1/16.jpg b/Photos_of_Thieves/Thief_1/16.jpg new file mode 100644 index 000000000..0316cd93f Binary files /dev/null and b/Photos_of_Thieves/Thief_1/16.jpg differ diff --git a/Photos_of_Thieves/Thief_1/17.jpg b/Photos_of_Thieves/Thief_1/17.jpg new file mode 100644 index 000000000..de1c976b4 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/17.jpg differ diff --git a/Photos_of_Thieves/Thief_1/18.jpg b/Photos_of_Thieves/Thief_1/18.jpg new file mode 100644 index 000000000..f23269e53 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/18.jpg differ diff --git a/Photos_of_Thieves/Thief_1/19.jpg b/Photos_of_Thieves/Thief_1/19.jpg new file mode 100644 index 000000000..43a05930b Binary files /dev/null and b/Photos_of_Thieves/Thief_1/19.jpg differ diff --git a/Photos_of_Thieves/Thief_1/2.jpg b/Photos_of_Thieves/Thief_1/2.jpg new file mode 100644 index 000000000..14b4379a4 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/2.jpg differ diff --git a/Photos_of_Thieves/Thief_1/20.jpg b/Photos_of_Thieves/Thief_1/20.jpg new file mode 100644 index 000000000..0907c54d0 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/20.jpg differ diff --git a/Photos_of_Thieves/Thief_1/21.jpg b/Photos_of_Thieves/Thief_1/21.jpg new file mode 100644 index 000000000..94ce76691 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/21.jpg differ diff --git a/Photos_of_Thieves/Thief_1/22.jpg b/Photos_of_Thieves/Thief_1/22.jpg new file mode 100644 index 000000000..d1f45f604 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/22.jpg differ diff --git a/Photos_of_Thieves/Thief_1/23.jpg b/Photos_of_Thieves/Thief_1/23.jpg new file mode 100644 index 000000000..92df6ab46 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/23.jpg differ diff --git a/Photos_of_Thieves/Thief_1/24.jpg b/Photos_of_Thieves/Thief_1/24.jpg new file mode 100644 index 000000000..ed97b314a Binary files /dev/null and b/Photos_of_Thieves/Thief_1/24.jpg differ diff --git a/Photos_of_Thieves/Thief_1/25.jpg b/Photos_of_Thieves/Thief_1/25.jpg new file mode 100644 index 000000000..2a95bfa55 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/25.jpg differ diff --git a/Photos_of_Thieves/Thief_1/26.jpg b/Photos_of_Thieves/Thief_1/26.jpg new file mode 100644 index 000000000..98df3f1f8 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/26.jpg differ diff --git a/Photos_of_Thieves/Thief_1/27.jpg b/Photos_of_Thieves/Thief_1/27.jpg new file mode 100644 index 000000000..3519bd296 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/27.jpg differ diff --git a/Photos_of_Thieves/Thief_1/28.jpg b/Photos_of_Thieves/Thief_1/28.jpg new file mode 100644 index 000000000..10c05e097 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/28.jpg differ diff --git a/Photos_of_Thieves/Thief_1/29.jpg b/Photos_of_Thieves/Thief_1/29.jpg new file mode 100644 index 000000000..2ec2c53b3 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/29.jpg differ diff --git a/Photos_of_Thieves/Thief_1/3.jpg b/Photos_of_Thieves/Thief_1/3.jpg new file mode 100644 index 000000000..a4311b2b7 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/3.jpg differ diff --git a/Photos_of_Thieves/Thief_1/30.jpg b/Photos_of_Thieves/Thief_1/30.jpg new file mode 100644 index 000000000..6b67c0e71 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/30.jpg differ diff --git a/Photos_of_Thieves/Thief_1/31.jpg b/Photos_of_Thieves/Thief_1/31.jpg new file mode 100644 index 000000000..123932dd1 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/31.jpg differ diff --git a/Photos_of_Thieves/Thief_1/32.jpg b/Photos_of_Thieves/Thief_1/32.jpg new file mode 100644 index 000000000..391d8ee09 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/32.jpg differ diff --git a/Photos_of_Thieves/Thief_1/33.jpg b/Photos_of_Thieves/Thief_1/33.jpg new file mode 100644 index 000000000..dd98a4920 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/33.jpg differ diff --git a/Photos_of_Thieves/Thief_1/34.jpg b/Photos_of_Thieves/Thief_1/34.jpg new file mode 100644 index 000000000..191308b47 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/34.jpg differ diff --git a/Photos_of_Thieves/Thief_1/35.jpg b/Photos_of_Thieves/Thief_1/35.jpg new file mode 100644 index 000000000..b2de2e9a4 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/35.jpg differ diff --git a/Photos_of_Thieves/Thief_1/36.jpg b/Photos_of_Thieves/Thief_1/36.jpg new file mode 100644 index 000000000..3564a302b Binary files /dev/null and b/Photos_of_Thieves/Thief_1/36.jpg differ diff --git a/Photos_of_Thieves/Thief_1/37.jpg b/Photos_of_Thieves/Thief_1/37.jpg new file mode 100644 index 000000000..65a0c09dc Binary files /dev/null and b/Photos_of_Thieves/Thief_1/37.jpg differ diff --git a/Photos_of_Thieves/Thief_1/38.jpg b/Photos_of_Thieves/Thief_1/38.jpg new file mode 100644 index 000000000..e253e3c57 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/38.jpg differ diff --git a/Photos_of_Thieves/Thief_1/39.jpg b/Photos_of_Thieves/Thief_1/39.jpg new file mode 100644 index 000000000..cd162d513 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/39.jpg differ diff --git a/Photos_of_Thieves/Thief_1/4.jpg b/Photos_of_Thieves/Thief_1/4.jpg new file mode 100644 index 000000000..20971eaa4 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/4.jpg differ diff --git a/Photos_of_Thieves/Thief_1/40.jpg b/Photos_of_Thieves/Thief_1/40.jpg new file mode 100644 index 000000000..453120075 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/40.jpg differ diff --git a/Photos_of_Thieves/Thief_1/41.jpg b/Photos_of_Thieves/Thief_1/41.jpg new file mode 100644 index 000000000..0f7de4c60 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/41.jpg differ diff --git a/Photos_of_Thieves/Thief_1/42.jpg b/Photos_of_Thieves/Thief_1/42.jpg new file mode 100644 index 000000000..d097a3f9a Binary files /dev/null and b/Photos_of_Thieves/Thief_1/42.jpg differ diff --git a/Photos_of_Thieves/Thief_1/43.jpg b/Photos_of_Thieves/Thief_1/43.jpg new file mode 100644 index 000000000..21a2d7a97 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/43.jpg differ diff --git a/Photos_of_Thieves/Thief_1/44.jpg b/Photos_of_Thieves/Thief_1/44.jpg new file mode 100644 index 000000000..3d6a7e23c Binary files /dev/null and b/Photos_of_Thieves/Thief_1/44.jpg differ diff --git a/Photos_of_Thieves/Thief_1/45.jpg b/Photos_of_Thieves/Thief_1/45.jpg new file mode 100644 index 000000000..db8a6c70a Binary files /dev/null and b/Photos_of_Thieves/Thief_1/45.jpg differ diff --git a/Photos_of_Thieves/Thief_1/46.jpg b/Photos_of_Thieves/Thief_1/46.jpg new file mode 100644 index 000000000..a82b351be Binary files /dev/null and b/Photos_of_Thieves/Thief_1/46.jpg differ diff --git a/Photos_of_Thieves/Thief_1/47.jpg b/Photos_of_Thieves/Thief_1/47.jpg new file mode 100644 index 000000000..a5625f6f3 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/47.jpg differ diff --git a/Photos_of_Thieves/Thief_1/48.jpg b/Photos_of_Thieves/Thief_1/48.jpg new file mode 100644 index 000000000..2b93e4df1 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/48.jpg differ diff --git a/Photos_of_Thieves/Thief_1/49.jpg b/Photos_of_Thieves/Thief_1/49.jpg new file mode 100644 index 000000000..79afe1ed9 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/49.jpg differ diff --git a/Photos_of_Thieves/Thief_1/5.jpg b/Photos_of_Thieves/Thief_1/5.jpg new file mode 100644 index 000000000..0ea386c03 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/5.jpg differ diff --git a/Photos_of_Thieves/Thief_1/6.jpg b/Photos_of_Thieves/Thief_1/6.jpg new file mode 100644 index 000000000..e23458d07 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/6.jpg differ diff --git a/Photos_of_Thieves/Thief_1/7.jpg b/Photos_of_Thieves/Thief_1/7.jpg new file mode 100644 index 000000000..8573f47cc Binary files /dev/null and b/Photos_of_Thieves/Thief_1/7.jpg differ diff --git a/Photos_of_Thieves/Thief_1/8.jpg b/Photos_of_Thieves/Thief_1/8.jpg new file mode 100644 index 000000000..53c002208 Binary files /dev/null and b/Photos_of_Thieves/Thief_1/8.jpg differ diff --git a/Photos_of_Thieves/Thief_1/9.jpg b/Photos_of_Thieves/Thief_1/9.jpg new file mode 100644 index 000000000..6551e3c8e Binary files /dev/null and b/Photos_of_Thieves/Thief_1/9.jpg differ diff --git a/__pycache__/Check_Up.cpython-36.pyc b/__pycache__/Check_Up.cpython-36.pyc index 4ffe1183b..fc41b46ef 100644 Binary files a/__pycache__/Check_Up.cpython-36.pyc and b/__pycache__/Check_Up.cpython-36.pyc differ diff --git a/__pycache__/DBHelper.cpython-36.pyc b/__pycache__/DBHelper.cpython-36.pyc index f5b7c0b97..2ec2a1e30 100644 Binary files a/__pycache__/DBHelper.cpython-36.pyc and b/__pycache__/DBHelper.cpython-36.pyc differ