vrvundyala commited on
Commit
77a7e4e
·
1 Parent(s): fedb0a0

siamese network first push

Browse files
app/Hackathon_setup/face_recognition.py CHANGED
@@ -94,7 +94,7 @@ def get_similarity(img1, img2):
94
  similarity = 1 / (1 + euclidean_distance.item())
95
 
96
 
97
- return euclidean_distance
98
 
99
  #1) Image captured from mobile is passed as parameter to this function in the API call, It returns the face class in the string form ex: "Person1"
100
  #2) The image is passed to the function in base64 encoding, Code to decode the image provided within the function
 
94
  similarity = 1 / (1 + euclidean_distance.item())
95
 
96
 
97
+ return similarity
98
 
99
  #1) Image captured from mobile is passed as parameter to this function in the API call, It returns the face class in the string form ex: "Person1"
100
  #2) The image is passed to the function in base64 encoding, Code to decode the image provided within the function