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-25 23:24:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6223411522a94d84b416144d2767a89e6b7ed8d4
62234115
1 parent
99335106
Update flask
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
flask/templates/register.html
flask/templates/register.html
View file @
6223411
...
...
@@ -30,7 +30,7 @@ function activate()
function
detect_face
(
img
)
{
let
canvas
=
document
.
createElement
(
'canvas'
);
let
ctx
=
canvas
.
getContext
(
"2d"
)
let
ctx
=
canvas
.
getContext
(
'2d'
)
ctx
.
src
=
img
;
let
src
=
cv
.
imread
(
canvas
);
let
dst
=
new
cv
.
Mat
(
src
.
cols
,
src
.
rows
,
cv
.
CV_8UC4
);
...
...
@@ -55,6 +55,8 @@ function detect_face(img)
let
cropped
=
src
.
roi
(
rect
);
cv
.
imshow
(
tempCanvas
,
cropped
);
}
let
preview
=
document
.
getElementById
(
'preview'
);
cv
.
imshow
(
preview
,
dst
);
if
(
faces
.
size
()
==
1
)
{
let
sender
=
document
.
getElementById
(
"sender"
);
...
...
@@ -68,7 +70,6 @@ function detect_face(img)
{
alert
(
'하나의 얼굴만 등록해주세요.'
)
}
cv
.
imshow
(
'preview'
,
dst
);
}
function
submit
()
...
...
Please
register
or
login
to post a comment