Graduate
......@@ -127,7 +127,7 @@ def verify():
if (distance < dist_min):
verified_id = row_data['student_id']
dist_min = distance
new_embedding = db_embedding * 0.97 + embedding * 0.03
new_embedding = db_embedding * 0.99 + embedding * 0.01
new_embedding = new_embedding.tobytes()
sql = "UPDATE student_embedding SET embedding=_binary %s WHERE student_id = %s"
cursor.execute(sql, (new_embedding, verified_id))
......
[verification_server]
model=models/20200816-080621
threshold=0.78
threshold=0.685
image_size=160
......
python3 -m flask run --host 0.0.0.0 --port 443 --cert=cert.pem --key=key.pem
python3 -m flask run --host 0.0.0.0 --port 443 --no-debugger --no-reload --cert=cert.pem --key=key.pem
......
......@@ -257,13 +257,13 @@ and is wrapped around the whole page content, except for the footer in this exam
<canvas id="canvasOutput">/canvas>
</div>
<div id="inputForm">
<strong>얼굴 이미지는 서버에 저장되지 않습니다</strong><br>
<strong>(복원 불가능한 512차원 벡터로 변환됩니다)</strong><br>
<strong>얼굴 이미지는 '절대로' 저장되지 않습니다</strong><br>
<strong>학번과 이름은 임의로 입력해주세요</strong><br>
<strong>예)1234/홍길동 등</strong><br>
학번: <input type="text" id="student_id"><br>
이름: <input type="text" id="student_name"><br>
<input id="sender" type="button" onclick="submit()" value="등록" disabled>
<input id="sender" type="button" onclick="submit()" value="등록" disabled><br>
등록 후: <a href="https://gabibing.com">출석체크 페이지</a>
</div>
</div>
</div>
......