-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
97 lines (85 loc) · 2.07 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 charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Realtime Person Face Recognition</title>
<link href="/bower_components/noty/lib/noty.css" rel="stylesheet">
<script src="/bower_components/noty/lib/noty.js" type="text/javascript"></script>
<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;
flex-direction: column;
justify-content: center;
align-items: center;
}
canvas {
position: absolute;
}
#control {
margin-top: 5px;
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
background-color: skyblue;
padding: 10px;
border-radius: 12px;
width: 50%;
}
input {
padding: 7px;
border-radius: 12px;
border-width: 0px;
min-width: 14rem;
}
input:focus {
outline: 0;
}
button {
display: flex;
align-items: center;
cursor: pointer;
border-width: 0px;
border-radius: 12px;
min-width: 10rem;
}
button:hover {
opacity: 50%;
}
button:focus {
outline: 0;
}
label {
cursor: pointer;
border-width: 1px solid black;
/* Style as you please, it will become the visible UI component. */
}
#border_wrap {
margin-top: 1px;
width: 720px;
height: 560px;
padding: 2px;
}
</style>
</head>
<body>
<div id="control">
<input type="text" name="name" id="name" />
<label for="imageUpload">
<input type="file" id="imageUpload" multiple />
</label>
<button onclick="startVideo()"><img src="images/play.svg" with="24" height="24"> start recognizing</button>
</div>
<div id="border_wrap">
<video id="video" width="720" height="560" autoplay muted></video>
</div>
</body>
</html>