-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (81 loc) · 3.72 KB
/
index.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
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
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0" />
<meta property="og:title" content="Face Classification JS">
<meta property="og:description" content="ตรวจจับอารมณ์และเพศของใบหน้าบนเว็บบราวเซอร">
<meta property="og:url" content="https://tupleblog.github.io/face-classification-js/">
<meta property="og:site_name" content="face-classification-js">
<meta property="og:image" content="https://tupleblog.github.io/face-classification-js/images/face_classification_og.png">
<title></title>
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/cmu-sans-serif" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg"
crossorigin="anonymous">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<!-- sticky footer -->
<div class="wrapper">
<!-- main container -->
<div class="container">
<br />
<!-- image viewer -->
<div class="row" id="card-item-container">
<div class="col s12 m12">
<div class="card">
<div id="image-container" class="card-content">
<video id="webcam" preload autoplay loop muted></video>
<canvas id="canvas_webcam"></canvas>
</div>
</div>
<div class="card">
<div id="result-container" class="card-content">
<div class="chart-result-profile-webcam" style="display: block; text-align: center;">
<canvas id="face_profile_chart" width="224" height="224" style="display: none"></canvas>
<canvas id="face_profile_greyscale" width="224" height="224" style="display: none"></canvas>
<canvas id="face_profile_chart_small" width="64" height="64"></canvas>
<canvas id="face_profile_greyscale_small" width="64" height="64" style="display: none"></canvas>
</div>
<div >
<p>Gender: <span id="gender"></span></p>
<p>Age: <span id="age"></span></p>
<p>Emotion: <span id="emotion"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- UI scripts -->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/js/materialize.min.js"></script>
<!-- tf -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"></script>
<!-- utils -->
<script src="js/tracking-min.js"></script>
<script src="js/face-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/5.9.0/math.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.19.0/sweetalert2.all.min.js"></script>
<script src="js/util.js"></script>
<script src="js/model_emotion.js"></script>
<script src="js/model_gender.js"></script>
<script src="js/webcam.js"></script>
<script type="text/javascript">
</script>
<style>
#card-item-container {
visibility: visible;
}
#image-container {
position: relative;
}
</style>
</body>
</html>