-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfacedetect.html
54 lines (44 loc) · 1.52 KB
/
facedetect.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>React WebGL Image Editing - Face Detect Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
</head>
<body>
<div class="face-button" style="background-image: url('test_face1.jpg')"></div>
<div class="face-button" style="background-image: url('test_face2.jpg')"></div>
<div class="face-button" style="background-image: url('test_face3.jpg')"></div>
<div class="face-button" style="background-image: url('test_face4.jpg')"></div>
<div class="face-button" style="background-image: url('test_face5.jpg')"></div>
<div class="face-button" style="background-image: url('test_face6.jpg')"></div>
<div id="container">
<canvas id="image" width="307" height="409"></canvas>
<canvas id="overlay" width="307" height="409"></canvas>
</div>
<p id="convergence"></p>
<script src="dist/facedetect.js" type="text/javascript"></script>
<style type="text/css">
#container {
position: relative;
}
#container canvas {
position: absolute;
top: 0;
left: 0;
}
.face-button {
width: 150px;
height: 120px;
background-size: cover;
cursor: pointer;
display: inline-block;
margin: 0 10px 10px 0;
border: 3px solid rgb(16,102,134);
}
.face-button:hover {
border-color: rgb(136,169,180);
}
</style>
</body>
</html>