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 15:31:05 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4aa33d34f9d7242f79cfa494181da8d7a985ca79
4aa33d34
1 parent
55b99c8e
Update flask
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 @
4aa33d3
...
...
@@ -112,7 +112,7 @@ function processVideo() {
let
point2
=
new
cv
.
Point
(
face
.
x
+
face
.
width
,
face
.
y
+
face
.
height
);
cv
.
rectangle
(
dst
,
point1
,
point2
,
[
255
,
0
,
0
,
255
]);
let
cropped
=
new
cv
.
Mat
();
let
rect
=
new
cv
.
Rect
(
face
.
x
-
22
,
face
.
y
-
22
,
face
.
width
+
22
,
face
.
height
+
22
);
let
rect
=
new
cv
.
Rect
(
Math
.
max
(
face
.
x
-
22
,
0
),
Math
.
max
(
face
.
y
-
22
,
0
)
,
face
.
width
+
22
,
face
.
height
+
22
);
cropped
=
src
.
roi
(
rect
);
let
tempCanvas
=
document
.
createElement
(
"canvas"
);
cv
.
imshow
(
tempCanvas
,
cropped
);
...
...
flask/templates/register.html
View file @
4aa33d3
...
...
@@ -54,7 +54,7 @@ function detect_face()
let
point2
=
new
cv
.
Point
(
face
.
x
+
face
.
width
,
face
.
y
+
face
.
height
);
cv
.
rectangle
(
dst
,
point1
,
point2
,
[
255
,
0
,
0
,
255
]);
// margin 44
let
rect
=
new
cv
.
Rect
(
face
.
x
-
22
,
face
.
y
-
22
,
face
.
width
+
22
,
face
.
height
+
22
);
let
rect
=
new
cv
.
Rect
(
Math
.
max
(
face
.
x
-
22
,
0
),
Math
.
max
(
face
.
y
-
22
,
0
)
,
face
.
width
+
22
,
face
.
height
+
22
);
let
cropped
=
src
.
roi
(
rect
);
cv
.
imshow
(
tempCanvas
,
cropped
);
}
...
...
Please
register
or
login
to post a comment