Spaces:
Runtime error
Runtime error
Commit
·
57c9739
1
Parent(s):
1528743
Update app.py
Browse files
app.py
CHANGED
@@ -67,8 +67,6 @@ def verify(model, detection_threshold, verification_threshold):
|
|
67 |
|
68 |
def take_ver_images (image):
|
69 |
count=0
|
70 |
-
for file in os.listdir(os.path.join('application_data', 'verification_images')):
|
71 |
-
os.remove(file)
|
72 |
cv2.imwrite(os.path.join('application_data', 'verification_images', '{}.jpg'.format(uuid.uuid1())), image)
|
73 |
count+=1
|
74 |
return '{} Image Collected!'.format(count)
|
|
|
67 |
|
68 |
def take_ver_images (image):
|
69 |
count=0
|
|
|
|
|
70 |
cv2.imwrite(os.path.join('application_data', 'verification_images', '{}.jpg'.format(uuid.uuid1())), image)
|
71 |
count+=1
|
72 |
return '{} Image Collected!'.format(count)
|