-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·45 lines (45 loc) · 1.62 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
<!DOCTYPE html>
<html>
<head>
<title>Smile Detection</title>
<link rel="stylesheet" href="./styles.css">
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> -->
</head>
<body>
<div class="container">
<div class="box-btn">
<button id="start-button" class="btn-header">Start</button>
<button id="restart-button" class="btn-header" disabled>Restart</button>
</div>
<div id="multimedia" class="multimedia" >
<div id="multi" class="multi"></div>
<video id="video" autoplay muted class="video"></video>
<div id="canvas" class="canvas"></div>
</div>
<div id="progress" class="progress mt-4">
<div id="progress-bar" class="progress-bar" style="width: 0;"></div>
</div>
<div id="smile-counters" class="box-btn">
<h5><span id="smile-counter-1" class="btn-footer">Person 1 Smiles: 0</span></h5>
<h5><span id="smile-counter-2" class="btn-footer">Person 2 Smiles: 0</span></h5>
</div>
</div>
<div id="popup" class="modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="box-btn">
<div id="winner" class="winner"></div>
<button id="play-again" class="btn-header">Play Again</button>
</div>
</div>
</div>
</div>
<script src="face-api.min.js"></script>
<script src="smile-detection.js"></script>
<script>
window.addEventListener('load', (event) => {
startSmileDetection();
});
</script>
</body>
</html>