Graduate

Update

......@@ -123,7 +123,7 @@ def verify():
db_embedding = np.frombuffer(row_data['embedding'], dtype=np.float32)
db_embedding = db_embedding.reshape((1,512))
distance = get_distance(embedding, db_embedding)
print(distance)
print('debug:', distance)
if (distance < dist_min):
verified_id = row_data['student_id']
dist_min = distance
......
......@@ -187,7 +187,7 @@ function activate_sender()
function toggle_streaming()
{
streamButton = document.getElementById("streamButton");
let streamButton = document.getElementById("streamButton");
streaming = !streaming;
if (streaming){
streamButton.value = "촬영중지";
......@@ -254,7 +254,7 @@ and is wrapped around the whole page content, except for the footer in this exam
<input id="streamButton" type="button" onclick="toggle_streaming()" value="활영시작">
<div id="container">
<video autoplay="true" id="videoInput" style="display: none; object-fit:cover;"></video>
<canvas id="canvasOutput"></canvas>
<canvas id="canvasOutput">/canvas>
</div>
<div id="inputForm">
<strong>얼굴 이미지는 서버에 저장되지 않습니다</strong><br>
......