Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2014104149
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Graduate
2020-11-29 07:50:53 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5b31ce4416450b81251d6b8ed7abd4762a3c46bc
5b31ce44
1 parent
32a60cb1
Update
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
flask/app.py
flask/templates/register.html
flask/app.py
View file @
5b31ce4
...
...
@@ -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
...
...
flask/templates/register.html
View file @
5b31ce4
...
...
@@ -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>
...
...
Please
register
or
login
to post a comment