fix after PR

This commit is contained in:
Şefik Serangil 2020-06-18 14:54:26 +03:00
parent 8332a1d9d1
commit 7df474934c
2 changed files with 2 additions and 5 deletions

View File

@ -207,10 +207,7 @@ def verify(img1_path, img2_path=''
#------------------------------
#face recognition models have different size of inputs
input_shape = model.layers[0].input_shape
if type(input_shape) is list:
input_shape = input_shape[0][1:3]
input_shape = model.layers[0].input_shape[1:3]
input_shape_x = input_shape[0]
input_shape_y = input_shape[1]

View File

@ -375,7 +375,7 @@ def analysis(db_path, model_name, distance_metric, enable_face_analysis = True):
employee_name = candidate['employee']
best_distance = candidate['distance']
#print(candidate[['employee', 'distance']])
p#rint(candidate[['employee', 'distance']].values)
#if True:
if best_distance <= threshold: