-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
88 lines (75 loc) · 1.74 KB
/
index.php
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Face Detection</title>
<link rel="stylesheet" href="style.css">
<script defer src="face-api.min.js"></script>
<script defer src="script.js"></script>
</head>
<body>
<div id="details">
<div>
Show face boundary
<label class="switch">
<input id="bound" type="checkbox">
<span class="slider round"></span>
</label>
</div>
<div>
Show face landmark
<label class="switch">
<input id="landmark" type="checkbox">
<span class="slider round"></span>
</label>
</div>
<div>
<div>
<small>Face Detection</small>
<div id="face">Detecting face...</div>
</div>
<div>
<small>Probability</small>
<div id="face-p">-</div>
</div>
</div>
<div>
<div>
<small>Gender</small>
<div id="gen">-</div>
</div>
<div>
<small>Probability</small>
<div id="gen-p">-</div>
</div>
</div>
<div>
<div>
<small>Age</small>
<div id="age">-</div>
</div>
<div>
<small>Probability</small>
<div id="gen-p">-</div>
</div>
</div>
<div>
<div>
<small>Expression</small>
<div id="exp">-</div>
</div>
<div>
<small>Probability</small>
<div id="exp-p">-</div>
</div>
</div>
<div id="exp-emo"></div>
</div>
<div id="alert">📷<small> Allow Web Cam to run this app</small></div>
<h2 id="loader">Loading...</h2>
<div id="cam-wrp">
<video id="cam" width="750" height="562" autoplay muted></video>
</div>
</body>
</html>