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:10:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a25f1020b077f01a01bbad81690d43a43767bded
a25f1020
1 parent
542d10d1
Update flask
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
flask/templates/register.html
flask/templates/register.html
View file @
a25f102
...
...
@@ -29,9 +29,8 @@ function activate()
function
detect_face
()
{
let
classifier
=
new
cv
.
CascadeClassifier
();
let
imgElement
=
document
.
getElementById
(
'imagefile'
);
classifier
.
load
(
'haarcascade_frontalface_default.xml'
);
let
src
=
cv
.
imread
(
imgElement
);
let
src
=
cv
.
imread
(
'imagefile'
);
let
dst
=
new
cv
.
Mat
(
video
.
height
,
video
.
width
,
cv
.
CV_8UC4
);
let
gray
=
new
cv
.
Mat
();
src
.
copyTo
(
dst
);
...
...
@@ -93,9 +92,9 @@ var loadFile = function(event) {
reader
.
readAsDataURL
(
event
.
target
.
files
[
0
]);
reader
.
onload
=
function
()
{
var
output
=
document
.
getElementById
(
'imagefile'
);
output
.
src
=
URL
.
createObjectURL
(
event
.
target
.
files
[
0
])
;
output
.
src
=
reader
.
result
;
detect_face
();
}
}
;
};
let
tempCanvas
=
document
.
createElement
(
"canvas"
);
...
...
Please
register
or
login
to post a comment