From 397ffa6564e6aa32d7588abd6c990de7cc6fddbf Mon Sep 17 00:00:00 2001 From: Limao Chang <80520563+LimaoC@users.noreply.github.com> Date: Sat, 21 Sep 2024 17:30:49 +1000 Subject: [PATCH] fix: fix get_face_match so that it actually returns an int (#63) --- client/models/face_recognition/recognition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/models/face_recognition/recognition.py b/client/models/face_recognition/recognition.py index 3fd157c..9dd0140 100644 --- a/client/models/face_recognition/recognition.py +++ b/client/models/face_recognition/recognition.py @@ -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