mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
deepid bug fixed
This commit is contained in:
parent
4bb49ab446
commit
be0b0d40c8
@ -102,7 +102,7 @@ def analysis(db_path, model_name, distance_metric, enable_face_analysis = True):
|
||||
employee = employees[index]
|
||||
pbar.set_description("Finding embedding for %s" % (employee.split("/")[-1]))
|
||||
embedding = []
|
||||
img = functions.detectFace(employee, input_shape)
|
||||
img = functions.detectFace(employee, (input_shape_y, input_shape_x))
|
||||
img_representation = model.predict(img)[0,:]
|
||||
|
||||
embedding.append(employee)
|
||||
@ -375,6 +375,9 @@ def analysis(db_path, model_name, distance_metric, enable_face_analysis = True):
|
||||
employee_name = candidate['employee']
|
||||
best_distance = candidate['distance']
|
||||
|
||||
#print(candidate[['employee', 'distance']])
|
||||
|
||||
#if True:
|
||||
if best_distance <= threshold:
|
||||
#print(employee_name)
|
||||
display_img = cv2.imread(employee_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user