-
Notifications
You must be signed in to change notification settings - Fork 33
/
index.html
executable file
·426 lines (318 loc) · 15.7 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
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
<!DOCTYPE html>
<html lang="en">
<head>
<title>Geolocation Estimation</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script src="demo/js/jquery.csv.min.js"></script>
<link rel="stylesheet" href="demo/leaflet/leaflet.css" />
<script src="demo/leaflet/leaflet.js"></script>
<script src="demo/leaflet/leaflet.rotatedMarker.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/solid.css" integrity="sha384-VGP9aw4WtGH/uPAOseYxZ+Vz/vaTb1ehm1bwx92Fm8dTrE+3boLfF1SpAtB1z7HW" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/regular.css" integrity="sha384-ZlNfXjxAqKFWCwMwQFGhmMh3i89dWDnaFU2/VZg9CvsMGA7hXHQsPIqS+JIAmgEq" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/fontawesome.css" integrity="sha384-1rquJLNOM3ijoueaaeS5m+McXPJCGdr5HcA03/VHXxcp2kX2sUrQDmFc3jR5i/C7" crossorigin="anonymous">
<style>
html,
body {
height: 100%;
}
.tib-red-text {
color: #AF1414;
}
.tib-red-bg {
background-color: #AF1414;
color: #eee;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: auto;
}
.cite {
padding: 2px;
padding-left: 10px;
color: #383d41;
background-color: #e2e3e5;
border-color: #d6d8db;
padding: .5rem 1.0rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: .25rem;
}
.top_row_buffer {
margin-top: 10px;
}
#map {
position: relative;
width: 100%;
height: 100%;
min-height: 460px;
border-radius: 4px 0px;
}
@media only screen and (max-width: 600px) {
#map {
position: relative;
width: 100%;
height: 200px;
min-height: 200px;
max-height: 200px;
}
}
.preview,
.preview_closed {
width: 100%;
max-height: 90vh;
object-fit: contain;
}
.list-group.list-group-horizontal {
display: flex;
flex-direction: row;
width: 100%;
max-height: 100%;
height: 90px;
overflow-x: scroll;
}
.list-group.list-group-horizontal .list-group-item {
margin: 0px;
height: 100%;
min-width: 90px;
padding: 0px 2px;
}
.list-group.list-group-horizontal .list-group-item img {
object-fit: contain;
height: 100%;
min-height: 100%;
width: 100%;
min-height: 100%;
}
.list-group.list-group-horizontal .list-group-item:first-child {
border-top-right-radius: 0;
border-bottom-left-radius: 4px;
}
.list-group.list-group-horizontal .list-group-item:last-child {
border-top-right-radius: 4px;
border-bottom-left-radius: 0;
border-right-width: 1px;
}
.list-group.list-group.list-group-horizontal .list-group-item.active.show {
background-color: #AF1414;
}
.image_container {
position: relative;
height: 100%;
text-align: center;
color: #888;
}
#image-card-body {
padding: 5px 0px 5px 0px;
}
img.image_full {
max-width: 100%;
object-fit: contain;
max-height: 280px;
}
img.image_full_closed {
max-width: 100%;
object-fit: contain;
max-height: 280px;
}
.tab-content {
padding: 0px 0px;
margin: 0px 0px;
}
.alert {
padding: 2px 10px;
}
.coll-card.card-header:after {
font-family: 'Font Awesome\ 5 Free';
content: '\f107';
font-weight: 900;
float: right;
}
#image_list_tabs .nav-item .nav-link {
color: #AF1414;
}
#image_list_tabs .nav-item .nav-link:hover {
color: #AF1414;
background-color: #e3e3e3;
}
#image_list_tabs .nav-item .nav-link.active {
color: #000;
}
.card-header {
background-color: #fff;
color: #AF1414;
}
.card-footer {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 0px 4px;
}
.padding-small {
padding: 5px 20px;
}
.btn_show_result:disabled {
background-color: #aaa;
color: #333;
}
</style>
</head>
<body class="bg-light">
<nav class="navbar navbar-light bg-white" style="box-shadow: 0px 0px 4px #888;">
<a href="https://github.com/TIBHannover/GeoEstimation" class="navbar-brand mr-0">
<h4 class="tib-red-text">Geolocation Estimation</h4>
</a>
<a href="https://www.tib.eu/de/"><img src="demo/style/images/logo.svg" width="74px" height="50px" class="d-inline-block align-top" alt=""></a>
</nav>
<div class="container-fluid" style="max-width: 1920px;">
<div class="row top_row_buffer align-items-end">
<div class="col-md-6">
<div class="card">
<div class="coll-card card-header collapsed " data-toggle="collapse" href="#collapseExample">
<a class="h6">Instructions</a>
</div>
<div class="card-body collapse show padding-small" id="collapseExample">
<p>Estimate the geolocation of a picture by dragging or clicking the marker on the world map. Images can be chosen in the "Image Selection" window by clickling on the thumbnail in the navigation bar. An enlarged view can
be accessed
by clicking on the preview image. The performance compared to our deep learning approach is shown in the "Statistics" window, where you can also reset the current annotations.
</p>
</div>
</div>
</div>
<div class="col-md-6" id="guess_location_desktop">
<button type='button' class='btn_show_result btn tib-red-bg btn-block btn-lg' disabled='true'>Guess Location</button>
</div>
</div>
<div class="row">
<div class="col-md-6 top_row_buffer h-100">
<div id="image-card" class="card h-100">
<div class="card-header">
<p class="card-title">Image Selection
<button id="btn_random_image" class="btn btn-outline-secondary tib-red-text btn-sm float-right" style="border: 1px solid #AF1414;">Choose
Random</button></p>
<ul id="image_list_tabs" class="nav nav-tabs card-header-tabs">
<li class="nav-item">
<a class="nav-link active" id="open_tab_title" data-toggle="tab" href="#open_tab">Open</a>
</li>
<li class="nav-item">
<a class="nav-link" id="closed_tab_title" data-toggle="tab" href="#closed_tab">Annotated</a>
</li>
</ul>
</div>
<div id="image-card-body" class="card-body">
<div class="tab-content">
<div id="open_tab" class="tab-pane active bg-white" style="padding: 0px 0px;">
<div class="list-group list-group-horizontal" id="list-images-open">
</div>
<div class="image_container">
<p style="margin-bottom: 0px;" class="license_text">Photo License:</p>
<img class="image_full center rounded" src="" alt="" data-toggle="modal" data-target="#previewFull">
</div>
</div>
<div id="closed_tab" class="tab-pane" style="padding: 0px 0px;">
<div class='alert alert-warning' role='alert' style="margin: 20px; padding: 10px;">There are no images annotated.</div>
<div class="list-group list-group-horizontal" id="list-images-closed">
</div>
<div class="image_container">
<p style="margin-bottom: 0px;" class="license_text_closed"></p>
<img class="image_full_closed center rounded" src="" alt="" data-toggle="modal" data-target="#previewFullClosed">
</div>
</div>
</div>
</div>
</div>
</div>
<div id="guess_location_mobile" style="width: 100%;">
<div class="col w-100 top_row_buffer">
<button type='button' class='btn_show_result btn tib-red-bg btn-block btn-lg' disabled='true'>Guess Location</button>
</div>
</div>
<div class="col-md-6 h-100 top_row_buffer">
<div id="map-card" class="card h-100" style="border: none;">
<div class="card-body" style="padding: 0px;">
<div id="map"></div>
</div>
<div class="card-footer" style="padding: 2px 5px;">
<div id="legend" style="text-align: right;">
<img src="demo/leaflet/images/custom/marker_GT_world.svg" alt="ground truth marker" width="2%" height="2%">
<small>Ground truth marker</small>
<img src="demo/leaflet/images/custom/marker_machine.svg" alt="machine's marker" width="2%" height="2%">
<small>Model's marker</small>
<img src="demo/leaflet/images/custom/marker_user.svg" alt="your marker" width="2%" height="2%">
<small>Your marker</small>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-3 col-md-6 top_row_buffer">
<div class="card h-100" id="result_card">
<div class="card-header">
<a class="h6">Result</a>
</div>
<div class="card-body padding-small">
<p>Distance to ground truth location:</p>
<div class="alert alert-success" role="alert" id='distance_user'></div>
<div class="alert alert-danger" role="alert" id='distance_model'></div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 top_row_buffer">
<div class="card h-100">
<div class="card-header">
<a>Statistics
<button id="reset_image_list" type="button" class="btn btn-link float-right" style="margin: 0px 0px -2px 0px; padding: 0px;">Reset</button>
</a>
</div>
<div class="card-body padding-small">
<ul class="list-unstyled" style="margin-bottom: 0px;">
<li class="" id="annotated_total_text">Annotated images: 0</li>
<li class="" id="rate_of_sucess_text">Rate of sucess: ---</li>
<li class="" id="mean_error_user_text">Your mean error: ---</li>
<li class="" id="mean_error_model_text">Model's mean error: ---</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-6 col-md-12 top_row_buffer order-lg-first">
<div class="card h-100">
<div class="card-header">
<a class="h6">Reference</a>
</div>
<div class="card-body padding-small">
<p>
For details on the deep learning approach please check our publication:
</p>
<div class="cite">
<a href="http://openaccess.thecvf.com/content_ECCV_2018/papers/Eric_Muller-Budack_Geolocation_Estimation_of_ECCV_2018_paper.pdf">
Eric Müller-Budack, Kader Pustu-Iren, Ralph Ewerth: Geolocation Estimation of Photos using a Hierarchical Model and Scene Classification. In:
<span style="font-style: italic;">European Conference on Computer Vision (ECCV)</span>, Munich, Springer, 2018, 575-592.
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="previewFull" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<img src="" class="preview img-responsive rounded">
</div>
</div>
<div id="previewFullClosed" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabelClosed" aria-hidden="true">
<div class="modal-dialog modal-lg">
<img src="" class="preview_closed img-responsive rounded">
</div>
</div>
</body>
<script src="interaction.js"></script>
</html>