Graduate

Modify distance logic

......@@ -130,12 +130,12 @@ async def thread(websocket, path):
db_embedding = np.frombuffer(row_data['embedding'], dtype=np.float32)
db_embedding = db_embedding.reshape((1,512))
distance = await get_distance(embedding, db_embedding)
if (distance < distance_min):
if (distance < 0.4):
verified_id = row_data['student_id']
distance_min = distance
break
# 출석 데이터 전송
print('[debug] distance:', distance_min)
send = ''
if distance_min < 0.4:
# 인증 성공
......