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-23 18:16:11 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
091bb35b36d579f45ddbbfc4910f359c5d065fc9
091bb35b
1 parent
d745b29d
Opencv.js face detection
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
flask/templates/index.html
flask/templates/index.html
View file @
091bb35
...
...
@@ -41,9 +41,6 @@ if (navigator.mediaDevices.getUserMedia){
}
</script>
<script>
function
openCvReady
()
{
cv
[
'onRuntimeInitialized'
]
=
()
=>
{
// do all your work here
let
video
=
document
.
getElementById
(
'videoElement'
);
let
src
=
new
cv
.
Mat
(
video
.
height
,
video
.
width
,
cv
.
CV_8UC4
);
let
dst
=
new
cv
.
Mat
(
video
.
height
,
video
.
width
,
cv
.
CV_8UC4
);
...
...
@@ -86,8 +83,6 @@ function openCvReady() {
}
// schedule the first one.
setTimeout
(
processVideo
,
0
);
};
}
</script>
</body>
</html>
...
...
Please
register
or
login
to post a comment