-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
235 lines (225 loc) · 8.46 KB
/
Copy pathindex.html
File metadata and controls
235 lines (225 loc) · 8.46 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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html lang="en">
<head>
<title>Drones hunter</title>
<meta charset="utf-8" />
<!-- Import the webpage's stylesheet -->
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width" />
</head>
<body>
<div class="container one">
<div class="image">
<div class="glass">
<div class="text">
<h1>Drone Detection</h1>
<p>Drone detection using only AI and your camera</p>
<section id="invisible" class="invisible">
<p>Click the button to enable the webcam</p>
<button id="webcamButton">Start Detection</button>
</section>
</div>
</div>
</div>
<!-- Feature of this webpage -->
<div class="footer">
<h1 id="Feature">Feature</h1>
<ul class="Feature">
<li>
<svg
class="icons"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 640 512"
>
<path
d="M150.7 92.77C195 58.27 251.8 32 320 32C400.8 32 465.5 68.84 512.6 112.6C559.4 156 590.7 207.1 605.5 243.7C608.8 251.6 608.8 260.4 605.5 268.3C592.1 300.6 565.2 346.1 525.6 386.7L630.8 469.1C641.2 477.3 643.1 492.4 634.9 502.8C626.7 513.2 611.6 515.1 601.2 506.9L9.196 42.89C-1.236 34.71-3.065 19.63 5.112 9.196C13.29-1.236 28.37-3.065 38.81 5.112L150.7 92.77zM223.1 149.5L313.4 220.3C317.6 211.8 320 202.2 320 191.1C320 180.5 316.1 169.7 311.6 160.4C314.4 160.1 317.2 159.1 320 159.1C373 159.1 416 202.1 416 255.1C416 269.7 413.1 282.7 407.1 294.5L446.6 324.7C457.7 304.3 464 280.9 464 255.1C464 176.5 399.5 111.1 320 111.1C282.7 111.1 248.6 126.2 223.1 149.5zM320 480C239.2 480 174.5 443.2 127.4 399.4C80.62 355.1 49.34 304 34.46 268.3C31.18 260.4 31.18 251.6 34.46 243.7C44 220.8 60.29 191.2 83.09 161.5L177.4 235.8C176.5 242.4 176 249.1 176 255.1C176 335.5 240.5 400 320 400C338.7 400 356.6 396.4 373 389.9L446.2 447.5C409.9 467.1 367.8 480 320 480H320z"
/>
</svg>
<h2>Privacy</h2>
<p>
It will work on your device, That mean we won't collect any data
from you.
</p>
</li>
<li>
<svg
class="icons"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
>
<path
d="M52.51 440.6l171.5-142.9V214.3L52.51 71.41C31.88 54.28 0 68.66 0 96.03v319.9C0 443.3 31.88 457.7 52.51 440.6zM308.5 440.6l192-159.1c15.25-12.87 15.25-36.37 0-49.24l-192-159.1c-20.63-17.12-52.51-2.749-52.51 24.62v319.9C256 443.3 287.9 457.7 308.5 440.6z"
/>
</svg>
<h2>Fast</h2>
<p>
Does not matter how fast your internet is, it will work on your
device.
</p>
</li>
<li>
<svg
class="icons"
id="icon3"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<path
d="M2 6c0-1.505.78-3.08 2-4c0 .845.69 2 2 2a3 3 0 0 1 3 3c0 .386-.079.752-.212 1.091a74.515 74.515 0 0 1 2.191 1.808l-2.08 2.08a75.852 75.852 0 0 1-1.808-2.191A2.977 2.977 0 0 1 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.341-1.341A4.446 4.446 0 0 0 17.5 12A4.5 4.5 0 0 0 22 7.5c0-.725-.188-1.401-.493-2.007L18 9l-2-2l3.507-3.507A4.446 4.446 0 0 0 17.5 3A4.5 4.5 0 0 0 13 7.5c0 .725.188 1.401.493 2.007L3 20l2 2l6.848-6.848a68.562 68.562 0 0 0 5.977 5.449l1.425 1.149l1.5-1.5l-1.149-1.425a68.562 68.562 0 0 0-5.449-5.977z"
></path>
</svg>
<h2>Customize</h2>
<p>
You can customize how fast prediction you want and how accurate
you want it.
</p>
</li>
<li>
<svg
class="icons"
id="icon3"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<path
fill="currentColor"
d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"
></path>
</svg>
<h2>Flexible</h2>
<p>Work on any device you just need internet and camera.</p>
</li>
</ul>
<!-- footer -->
<br />
<footer class="footer">
<div class="footer-text">
<p>
Developed by
<a
href="mailto:faisalsaweed@gmail.com"
target="_blank"
style="color: #ff6f00"
>
Faisal Alsaweed
</a>
</p>
</div>
</footer>
<!-- loading icon -->
<div class="loader">
<svg
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
width="24px"
height="30px"
viewBox="0 0 24 30"
style="enable-background: new 0 0 50 50"
xml:space="preserve"
>
<rect x="0" y="0" width="4" height="10" fill="#333">
<animateTransform
attributeType="xml"
attributeName="transform"
type="translate"
values="0 0; 0 20; 0 0"
begin="0"
dur="0.6s"
repeatCount="indefinite"
/>
</rect>
<rect x="10" y="0" width="4" height="10" fill="#333">
<animateTransform
attributeType="xml"
attributeName="transform"
type="translate"
values="0 0; 0 20; 0 0"
begin="0.2s"
dur="0.6s"
repeatCount="indefinite"
/>
</rect>
<rect x="20" y="0" width="4" height="10" fill="#333">
<animateTransform
attributeType="xml"
attributeName="transform"
type="translate"
values="0 0; 0 20; 0 0"
begin="0.4s"
dur="0.6s"
repeatCount="indefinite"
/>
</rect>
</svg>
</div>
</div>
</div>
<!-- container two -->
<dev class="container two" style="display: none">
<div class="logo">
<img src="images/logo.png" alt="logo" />
</div>
<hr style="display: block" />
<section>
<p>
From here you can start detecting the drone, and you can customize the
speed and accuracy of the prediction.
</p>
<p>
When the drone is detected, you will see the prediction result in the
bottom of this page.
</p>
<div class="Customize">
<label>The speed</label>
<input
type="range"
id="speed"
name="speed"
min="1"
max="6"
value="3"
/>
<br />
<br />
<label>The accuracy</label>
<input
type="range"
id="Threshold"
name="Threshold"
min="1"
max="6"
value="4"
/>
</div>
<div id="liveView" class="camView">
<video id="webcam" autoplay muted playsinline width="40%"></video>
</div>
<button onclick="chngcam()" id="changecamera">Change Camera</button>
<div id="prediction" class="prediction">
<h1>Prediction</h1>
<table id="predictionTable">
<thead>
<tr>
<th>Drone Detected</th>
<th class="centd">Time</th>
<th>Accuracy</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</section>
</dev>
<!-- Import TensorFlow.js library -->
<script
src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs/dist/tf.min.js"
type="text/javascript"
></script>
<!-- Import the page's JavaScript to do some stuff -->
<script src="script.js" defer></script>
</body>
</html>