-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebcam_face_tracking.html
More file actions
126 lines (123 loc) · 4.08 KB
/
webcam_face_tracking.html
File metadata and controls
126 lines (123 loc) · 4.08 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Face Recognition & Identification</title>
<!-- MDB icon -->
<link rel="icon" href="public/img/icon.ico" type="image/x-icon" />
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.11.2/css/all.css"
/>
<!-- Google Fonts Roboto -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
/>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css" />
<!-- Material Design Bootstrap -->
<link rel="stylesheet" href="css/mdb.min.css" />
<!-- Your custom styles (optional) -->
<!-- <link rel="stylesheet" href="css/style.css" /> -->
<!-- Video JS -->
<link href="https://vjs.zencdn.net/7.8.4/video-js.css" rel="stylesheet" />
<!-- face-api script -->
<script defer src="dist/face-api.min.js"></script>
<!-- Main script -->
<script defer src="dist/webcam_script.js"></script>
<style>
body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
canvas {
position: absolute;
}
</style>
</head>
<body>
<!-- Start your project here-->
<!--Main Navigation-->
<header>
<nav
class="navbar fixed-top navbar-expand-lg navbar-dark primary-color scrolling-navbar"
>
<a class="navbar-brand" href="#"><strong>Face-Recognition</strong></a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="face_recognition.html"
>Face Detection & Identification</a
>
</li>
<li class="nav-item active">
<a class="nav-link" href="webcam_face_tracking.html"
>Webcam Face Tracking<span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item">
<a class="nav-link" href="index.html"
>Age Estimation & Gender Recognition</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="face_expression_recognition.html"
>Face Expression Recognition</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="video_face_tracking.html"
>Video Face Tracking</a
>
</li>
</ul>
</div>
</nav>
</header>
<!--Main Navigation-->
<div class="container py-5">
<div class="row py-5">
<div class="col-lg-6 mx-auto">
<!-- Upload image input-->
<div class="input-group-append d-flex justify-content-center">
<video id="video" width="1280" height="720" autoplay muted></video>
</div>
</div>
</div>
</div>
<!-- End your project here-->
<!-- jQuery -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="js/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Video JS -->
<script src="https://vjs.zencdn.net/7.8.4/video.js"></script>
</body>
</html>