faceplugin commited on
Commit
e74eb3a
1 Parent(s): 6701dfd

Update threshold

Browse files
Files changed (1) hide show
  1. face_recognition1/run.py +2 -2
face_recognition1/run.py CHANGED
@@ -22,7 +22,7 @@ def match_image(src_numpy, dst_numpy):
22
 
23
  print("Matching Score: ", sim)
24
 
25
- if sim < 0.72:
26
  result = "Different Person"
27
  else:
28
  result = "Same Person"
@@ -30,7 +30,7 @@ def match_image(src_numpy, dst_numpy):
30
 
31
  response = {
32
  "confidence": sim,
33
- "threshold": 0.72,
34
  "result": result
35
  }
36
  return response
 
22
 
23
  print("Matching Score: ", sim)
24
 
25
+ if sim < 0.61:
26
  result = "Different Person"
27
  else:
28
  result = "Same Person"
 
30
 
31
  response = {
32
  "confidence": sim,
33
+ "threshold": 0.61,
34
  "result": result
35
  }
36
  return response