-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
175 lines (155 loc) · 5.75 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html>
<head>
<title>Facial Analysis</title>
<link rel="stylesheet" href="css/bootstrap-4.3.1/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<nav class="col-lg-12">
<div class="row">
<div class="col-md-3">
<a >Face Detection and Recongtion</a>
</div>
<div class="col-md-4">
<h5 id="sourceName"></h5>
</div>
<div class="col-md-5" id="statusDiv">
</div>
</div>
</nav>
<div id="startUpView">
<h2> Were to Get a Video ?</h2>
<p> Choose a video to start analzing either use camera or pick a video from your device.</p>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-4 startUpOption" id="videoSelect">
<img class="img-fluid" src="./icons8/video-playlist-500.png" alt="add-image"/>
<span> Video </span>
<p> Upload a .mp4, .ogg, .mkv video clip.</p>
</div>
<div class="col-md-2"></div>
<div class="col-md-4 startUpOption" id="webcamSelect">
<img class="img-fluid" src="./icons8/camera-500.png" alt="add-image"/>
<span>Camera</span>
<p> Take live feed from the camera. </p>
</div>
<div class="col-md-1"></div>
</div>
</div>
<section hidden>
<div class="row">
<div id="videoDiv">
<canvas id="overlay"></canvas>
<video class="img-fluid" id="playback" autoplay="true" controls></video>
<div id="controlButtons">
<div class="tip" id="startButton">
<img class="img-fluid" src="./icons8/play-50.png" alt="add-image">
<span> Start Detecting Faces </span>
</div>
<div hidden="true" class="tip" id="pauseButton">
<img class="img-fluid" src="./icons8/pause-50.png" alt="pause-image">
<span> Pause Detecting Faces </span>
</div>
<div class="tip" id="clearButton">
<img class="img-fluid" src="./icons8/refresh-50.png" alt="refresh-image">
<span> Reset Dectections </span>
</div>
<div class="tip" id="addPerson">
<img class="img-fluid" src="./icons8/add-male-user-50.png" alt="add-image">
<input type="file" accept="image/*" hidden="" id="imageInput">
<span> Add a Person to Recongize </span>
</div>
<div class="tip" id="videoUpload">
<img class="img-fluid" src="./icons8/video-playlist-50.png" alt="video-image">
<input type="file" accept="video/.mp4 .ogg" hidden="" id="videoInput">
<span> Upload Video To Analyze </span>
</div>
<div class="tip" id="webCamButton">
<img class="img-fluid" src="./icons8/camera-50.png" alt="camera-image">
<span> Switch to Live Camera Feed </span>
</div>
</div>
</div>
<div class="controlPanel" id="controlPanel">
<div>
<ul class="nav row">
<li id="detectionButton">
<a >Facial Detection</a>
<div class="tip">
<img class="img-fluid" src="./icons8/help-25.png"></img>
<span>
The indivual people which the alogthrims can be recongize
</span>
</div>
</li>
<li id="recongitionButton">
<a >Facial Recongition </a>
<div class="tip">
<img class="img-fluid" src="./icons8/help-25.png"></img>
<span>
The faces decteted since the begining of the video stream
</span>
</div>
</li>
<li id="settingsButton">
<a >Application Settings</a>
<div class="tip">
<img class="img-fluid" src="./icons8/help-25.png"></img>
<span>
Configure the Application's Settings
</span>
</div>
</li>
</ul>
<hr>
</div>
<div class="panel" hidden="true" id="detectionPanel">
<div id="detectionView"></div>
</div>
<div class="panel" hidden="true" id="recongitionPanel">
<div id="recognitionView"></div>
</div>
<div class="panel" hidden="true" id="settingsPanel">
<div class="form-group">
<label for="expressionSetting" > Dectect Facial Expressions </label>
<input class="btn-primary" checked type="checkbox" name="expressionSetting"/>
</div>
<div class="form-group">
<label for="ageGenderSetting" > Dectect Age and Gender </label>
<input class="btn-primary" checked type="checkbox" name="ageGenderSetting"/>
</div>
<div class="form-group">
<label for="extractSetting" > Extract Facial Dectetions </label>
<input class="btn-primary" checked type="checkbox" name="extractSetting"/>
</div>
<div class="form-group">
<label for="recognizeSetting" > Recognize Faces </label>
<input class="btn-primary" checked type="checkbox" name="recognizeSetting"/>
</div>
<div class="form-group">
<label for="renderOnCanvas" > Display Dectections on the Video</label>
<input class="btn-primary" checked type="checkbox" name="renderOnCanvas"/>
</div>
<div class="form-group">
<label for="renderSentence" > Format Infomation as Sentence </label>
<input class="btn-primary" type="checkbox" name="renderSentence"/>
</div>
<div class="form-group">
<label for="renderConfidence" > Display Face Dectection Probability </label>
<input class="btn-primary" checked type="checkbox" name="renderConfidence"/>
</div>
<div class="form-group">
<label for="scaleFactor" > Scale Factor </label>
<input type="number" max="1" min="0.001" value="0.709" name="scaleFactor"/>
</div>
</div>
</div>
</div>
</section>
</body>
<script src="./js/vendor/jquery-3.4.1.js" type="text/javascript"></script>
<script src="./js/vendor/bootstrap-4.3.1/bootstrap.min.js"></script>
<script src="./js/vendor/face-api.js/face-api.min.js" type="text/javascript"></script>
<script src="./js/main.js" type="module"></script>
</html>