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:21:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
993351067f32601a8f6360c870f3aed150f437d4
99335106
1 parent
ea33d20a
Update flask
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
flask/templates/register.html
flask/templates/register.html
View file @
9933510
...
...
@@ -29,15 +29,16 @@ function activate()
function
detect_face
(
img
)
{
let
classifier
=
new
cv
.
CascadeClassifier
();
classifier
.
load
(
'haarcascade_frontalface_default.xml'
);
let
canvas
=
document
.
createElement
(
'canvas'
);
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
);
let
gray
=
new
cv
.
Mat
();
let
faces
=
new
cv
.
RectVector
();
let
classifier
=
new
cv
.
CascadeClassifier
();
classifier
.
load
(
'haarcascade_frontalface_default.xml'
);
src
.
copyTo
(
dst
);
cv
.
cvtColor
(
dst
,
gray
,
cv
.
COLOR_RGBA2GRAY
,
0
);
let
msize
=
new
cv
.
Size
(
120
,
120
);
...
...
Please
register
or
login
to post a comment