Merge pull request #11 from Xu-jianwen/dev

fixed the bug
This commit is contained in:
Xu-jianwen 2021-08-13 10:30:49 +08:00 committed by GitHub
commit 259e58ac0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ def analysis(db_path, model_name = 'VGG-Face', detector_backend = 'opencv', dist
model = DeepFace.build_model(model_name)
print(model_name, "is built")
threshold = dst.findThreshold(model_name, distance_metric)
input_shape = (224, 224); input_shape_x = input_shape[0]; input_shape_y = input_shape[1]
input_shape = functions.find_input_shape(model); input_shape_x = input_shape[0]; input_shape_y = input_shape[1]
text_color = (255, 255, 255)