Showing
2 changed files
with
3 additions
and
3 deletions
| ... | @@ -123,7 +123,7 @@ def verify(): | ... | @@ -123,7 +123,7 @@ def verify(): |
| 123 | db_embedding = np.frombuffer(row_data['embedding'], dtype=np.float32) | 123 | db_embedding = np.frombuffer(row_data['embedding'], dtype=np.float32) |
| 124 | db_embedding = db_embedding.reshape((1,512)) | 124 | db_embedding = db_embedding.reshape((1,512)) |
| 125 | distance = get_distance(embedding, db_embedding) | 125 | distance = get_distance(embedding, db_embedding) |
| 126 | - print(distance) | 126 | + print('debug:', distance) |
| 127 | if (distance < dist_min): | 127 | if (distance < dist_min): |
| 128 | verified_id = row_data['student_id'] | 128 | verified_id = row_data['student_id'] |
| 129 | dist_min = distance | 129 | dist_min = distance | ... | ... |
| ... | @@ -187,7 +187,7 @@ function activate_sender() | ... | @@ -187,7 +187,7 @@ function activate_sender() |
| 187 | 187 | ||
| 188 | function toggle_streaming() | 188 | function toggle_streaming() |
| 189 | { | 189 | { |
| 190 | - streamButton = document.getElementById("streamButton"); | 190 | + let streamButton = document.getElementById("streamButton"); |
| 191 | streaming = !streaming; | 191 | streaming = !streaming; |
| 192 | if (streaming){ | 192 | if (streaming){ |
| 193 | streamButton.value = "촬영중지"; | 193 | streamButton.value = "촬영중지"; |
| ... | @@ -254,7 +254,7 @@ and is wrapped around the whole page content, except for the footer in this exam | ... | @@ -254,7 +254,7 @@ and is wrapped around the whole page content, except for the footer in this exam |
| 254 | <input id="streamButton" type="button" onclick="toggle_streaming()" value="활영시작"> | 254 | <input id="streamButton" type="button" onclick="toggle_streaming()" value="활영시작"> |
| 255 | <div id="container"> | 255 | <div id="container"> |
| 256 | <video autoplay="true" id="videoInput" style="display: none; object-fit:cover;"></video> | 256 | <video autoplay="true" id="videoInput" style="display: none; object-fit:cover;"></video> |
| 257 | - <canvas id="canvasOutput"></canvas> | 257 | + <canvas id="canvasOutput">/canvas> |
| 258 | </div> | 258 | </div> |
| 259 | <div id="inputForm"> | 259 | <div id="inputForm"> |
| 260 | <strong>얼굴 이미지는 서버에 저장되지 않습니다</strong><br> | 260 | <strong>얼굴 이미지는 서버에 저장되지 않습니다</strong><br> | ... | ... |
-
Please register or login to post a comment