-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (52 loc) · 2.64 KB
/
index.html
File metadata and controls
68 lines (52 loc) · 2.64 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
<html>
<head>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='main.css') }}">
</head>
<div class="container-fluid">
<div class="px-lg-5">
<!-- For demo purpose -->
<div class="row py-5">
<div class="col-lg-12 mx-auto">
<div class="text-white p-5 shadow-sm rounded banner">
<h1 class="display-4">Image2Image gallery</h1>
<p class="lead">Upload Image For Search :</p>
<div class="mb-3"><label for="formFileSm" class="form-label">Revelent Images with be displayed :
</label>
<form method="POST" enctype="multipart/form-data">
<input class="form-control form-control-sm" id="formFileSm" type="file" name="query_img">
</br>
<input type="submit" class="btn btn-primary btn-lg btn-block">
</form>
{% if query_path %}
<h2 style="text-align:center">Query:</h2>
<img src="{{ query_path }}" class="center" width="300px" height="300px">{%endif%}
</div>
</div>
</div>
</div>
<!-- End -->
<div class="row">
{% for score in scores %}
<!-- Gallery item -->
<div class="col-xl-3 col-lg-4 col-md-6 mb-4">
<div class="bg-white rounded shadow-sm"><img src="{{ score[1] }}" height="200px" alt=""
class="img-fluid card-img-top">
<div class="p-4">
<h5> <a href="#" class="text-dark">{{ score[0] }}</a></h5>
<p class="small text-muted mb-0">Similarity Between query and DB match is considered.</p>
<div
class="d-flex align-items-center justify-content-between rounded-pill bg-light px-3 py-2 mt-4">
<p class="small mb-0"><i class="fa fa-picture-o mr-2"></i><span
class="font-weight-bold">JPG</span></p>
<div class="badge badge-danger px-3 rounded-pill font-weight-normal">Matching</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="py-5 text-right"><a href="#" class="btn btn-dark px-5 py-3 text-uppercase">Show me more</a></div>
</div>
</div>
</html>