-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path人脸添加.html
40 lines (38 loc) · 952 Bytes
/
人脸添加.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>VisioLogin Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="effet/effet.css">
<script src="effet/effet.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
effet.init({
el: 'myface',
type:'addFace',
size:'max',
callBack: (data) => {
console.log(data);
}
});
});
</script>
<style>
#myface{
width: 500px;
height: 500px;
}
</style>
</head>
<body>
<!-- 用于渲染人脸识别的容器 -->
<div id="myface"></div>
<button onclick="restartFace()">重新检测</button>
<script>
function restartFace(){
effet.restart({blur:10});
}
</script>
</body>
</html>