-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (52 loc) · 1.37 KB
/
index.html
File metadata and controls
58 lines (52 loc) · 1.37 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Live Face Emotion Detection.!</title>
<script defer src="face-api.min.js"></script>
<script defer src="script.js"></script>
<style>
body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
canvas {
position: absolute;
}
#video {
border: 2px solid #ccc;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.back-button {
position: absolute;
top: 20px;
left: 20px;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
.back-button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<h1 style="position: absolute; top: 20px; left: 50%; transform: translateX(-50%);">Live Face Emotion Detection</h1> <!-- Added title -->
<video id="video" width="720" height="560" autoplay muted></video>
<button class="back-button" onclick="main.html">Back</button>
<a href="main.html" class="back-button">Back</a>
</body>
</html>