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 22:41:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d724b0c20c21f1814fc0fc3d4a451d20e2940c36
d724b0c2
1 parent
85688d32
Update flask
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
flask/templates/index.html
flask/templates/register.html
flask/templates/index.html
View file @
d724b0c
...
...
@@ -152,7 +152,7 @@ setTimeout(processVideo, 0);
}
</script>
</head>
<body
onload=
"cv['onRuntimeInitialized']=()=>{ load_cascade()
}
"
>
<body
onload=
"cv['onRuntimeInitialized']=()=>{ load_cascade()
; };
"
>
<div
id=
"container"
>
<video
autoplay=
"true"
id=
"videoInput"
width=
640
height=
480
style=
"display: none;"
></video>
<canvas
id=
"canvasOutput"
width=
640
height=
480
></canvas>
...
...
flask/templates/register.html
View file @
d724b0c
<!doctype html>
<html>
<head>
<meta
charset=
"
UTF
-8"
>
<meta
charset=
"
utf
-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Web Attendance System Register
</title>
<link
rel=
"stylesheet"
href=
"https://www.w3schools.com/w3css/4/w3.css"
>
...
...
@@ -14,13 +14,11 @@
let
tempCanvas
=
document
.
createElement
(
"canvas"
);
function
load_cascade
()
{
alert
(
"shibal"
);
let
faceCascadeFile
=
'haarcascade_frontalface_default.xml'
;
let
faceCascadeURL
=
"{{url_for('static', filename='js/haarcascade_frontalface_default.xml')}}"
;
let
faceCascadeFile
=
'haarcascade_frontalface_default.xml'
let
faceCascadeURL
=
'static/js/haarcascade_frontalface_default.xml'
let
utils
=
new
Utils
(
'errorMessage'
);
utils
.
createFileFromUrl
(
faceCascadeFile
,
faceCascadeURL
,
()
=>
{
alert
(
"shibal"
);
activate
();
activate
()
});
}
function
activate
()
...
...
@@ -100,14 +98,17 @@ var loadFile = function(event) {
}
};
cv
[
'onRuntimeInitialized'
]
=
()
=>
{
load_cascade
();
};
</script>
</head>
<body
class=
"w3-light-grey"
onload=
"cv['onRuntimeInitialized']=()=>{ load_cascade() }"
>
<body
class=
"w3-light-grey"
>
<!-- w3-content defines a container for fixed size centered content,
and is wrapped around the whole page content, except for the footer in this example -->
<div
class=
"w3-content"
style=
"max-width:1400px"
>
<!-- Header -->
<div
class=
"w3-content"
style=
"max-width:1400px"
>
<!-- Header -->
<header
class=
"w3-container w3-center w3-padding-32"
>
<h1><b>
얼굴 등록
</b></h1>
<p>
Made by
<span
class=
"w3-tag"
>
정해갑
</span></p>
...
...
@@ -126,7 +127,7 @@ and is wrapped around the whole page content, except for the footer in this exam
<input
id=
"sender"
type=
"button"
onclick=
"submit"
value=
"등록"
disabled
>
</div>
</div>
</div>
</div>
</body>
</html>
...
...
Please
register
or
login
to post a comment