Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
fix: fix get_face_match so that it actually returns an int (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
LimaoC authored Sep 21, 2024
1 parent 620c444 commit 397ffa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/models/face_recognition/recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ def get_face_match(login_face: np.ndarray) -> int:
except ValueError:
return -1
df = dfs[0]
user_id = _path_to_user_id(df.iloc[0]["identity"])
user_id = int(_path_to_user_id(df.iloc[0]["identity"]))
return user_id

0 comments on commit 397ffa6

Please sign in to comment.