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 03:44:31 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
32a60cb19b5e4f652f666afae1849d4f16f34d76
32a60cb1
1 parent
002426ba
Dectect optimization
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
flask/templates/index.html
flask/templates/register.html
flask/templates/index.html
View file @
32a60cb
...
...
@@ -100,6 +100,7 @@ function main()
let
canvasContext
=
canvasOutput
.
getContext
(
'2d'
);
let
src
=
new
cv
.
Mat
(
video
.
height
,
video
.
width
,
cv
.
CV_8UC4
);
let
dst
=
new
cv
.
Mat
(
video
.
height
,
video
.
width
,
cv
.
CV_8UC4
);
let
msize
=
new
cv
.
Size
(
video
.
width
/
4
,
video
.
height
/
4
);
let
dsize
=
new
cv
.
Size
(
canvasOutput
.
width
,
canvasOutput
.
height
);
let
cap
=
new
cv
.
VideoCapture
(
video
);
let
faces
=
new
cv
.
RectVector
();
...
...
@@ -152,7 +153,6 @@ function main()
cv
.
flip
(
src
,
src
,
1
);
src
.
copyTo
(
dst
);
// detect faces.
let
msize
=
new
cv
.
Size
(
video
.
width
/
4
,
video
.
height
/
4
);
classifier
.
detectMultiScale
(
dst
,
faces
,
1.1
,
5
,
0
,
msize
);
// draw faces.
for
(
let
i
=
0
;
i
<
faces
.
size
();
++
i
)
{
...
...
flask/templates/register.html
View file @
32a60cb
...
...
@@ -81,6 +81,7 @@ function main()
let
canvasContext
=
canvasOutput
.
getContext
(
'2d'
);
let
src
=
new
cv
.
Mat
(
video
.
height
,
video
.
width
,
cv
.
CV_8UC4
);
let
dst
=
new
cv
.
Mat
(
video
.
height
,
video
.
width
,
cv
.
CV_8UC4
);
let
msize
=
new
cv
.
Size
(
video
.
width
/
4
,
video
.
height
/
4
);
let
dsize
=
new
cv
.
Size
(
canvasOutput
.
width
,
canvasOutput
.
height
);
let
cap
=
new
cv
.
VideoCapture
(
video
);
let
faces
=
new
cv
.
RectVector
();
...
...
@@ -132,7 +133,6 @@ function main()
cv
.
flip
(
src
,
src
,
1
);
src
.
copyTo
(
dst
);
// detect faces.
let
msize
=
new
cv
.
Size
(
video
.
width
/
4
,
video
.
height
/
4
);
classifier
.
detectMultiScale
(
dst
,
faces
,
1.1
,
5
,
0
,
msize
);
// draw faces.
for
(
let
i
=
0
;
i
<
faces
.
size
();
++
i
)
{
...
...
Please
register
or
login
to post a comment