-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
174 lines (113 loc) · 4.27 KB
/
index2.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
<html lang="en">
<meta charset="utf-8"/>
<head>
<title>Labelling Tool</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<script src="https://demos.jquerymobile.com/1.4.2/js/jquery.js"></script>
<link rel="stylesheet" href="https://demos.jquerymobile.com/1.4.2/css/themes/default/jquery.mobile-1.4.2.min.css">
<link rel = "stylesheet" type = "text/css" href = "style.css" />
<script src="canvas.js"></script>
<script src="threshold.js"></script>
</head>
<body>
<div class="container-fluid">
<h1 style="background-color:lavender; text-align: center; " >Image annotator </h1>
<p style=" text-align: center; " > Upload your image</p>
</div>
<!-- ----------------------------------------------------------------------------------------------------- -->
<div class="container-fluid" >
<div class="row">
<div class="col-sm-12 imagedisplay" >
Upload the image
<input id="imageupload" type="file" onchange="Display(this); threshold() ;">
<br>
</div>
</div>
<!-- ----------------------------------------------------------------------------------------------------- -->
<div class="row">
<div class="col-sm-6 imagedisplay" >
<!-- <img src="" class="img-responsive preview" id="Q2" alt=""> -->
<canvas id="Q2" width=700px height=400px> </canvas>
<p id="Ground Truth Image"></p>
</div>
<div class="col-sm-6 imagedisplay" >
<!-- <img src="" class="img-responsive preview" alt=""> -->
<canvas id='Q1' width=700px height=400px > </canvas>
<p id="Manipulated Image"></p>
</div>
</div>
<!-- ----------------------------------------------------------------------------------------------------- -->
<br> <br>
<div class="row">
<div class="col-sm-6 imagedisplay" >
<!-- <img src="" class="img-responsive preview" alt=""> -->
<!-- <img src="" class="img-responsive preview" id="Q3" alt=""> -->
<!-- <canvas id="Q" class="preview" > </canvas> -->
<canvas id="Q3" width=700px height=400px> </canvas>
<!-- <canvas id="Q3" class="preview" > </canvas> -->
<p id="Binary Manipulated Image"></p>
</div>
<div class="col-sm-6 imagedisplay" >
<!-- <br><br> -->
<div class="slidecontainer">
<div class="row">
<div class="col-sm-11" >
<input type="range" min="0" max="255" value="0" class="slider red" id="S1"> <br>
</div>
<div class="col-sm-1" > <p id="V1"> 0 </p> </div>
</div>
<div class="row">
<div class="col-sm-11" >
<input type="range" min="0" max="255" value="255" class="slider red" id="S2"> <br> <br>
</div>
<div class="col-sm-1" id="V2"> 255 </div>
</div>
<div class="row">
<div class="col-sm-11" >
<input type="range" min="0" max="255" value="0" class="slider blue" id="S3"> <br>
</div>
<div class="col-sm-1" id="V3"> 0 </div>
</div>
<div class="row">
<div class="col-sm-11" >
<input type="range" min="0" max="255" value="255" class="slider blue" id="S4"> <br> <br>
</div>
<div class="col-sm-1" id="V4"> 255 </div>
</div>
<div class="row">
<div class="col-sm-11" >
<input type="range" min="0" max="255" value="0" class="slider green" id="S5" > <br>
</div>
<div class="col-sm-1" id="V5"> 0 </div>
</div>
<div class="row">
<div class="col-sm-11" >
<input type="range" min="0" max="255" value="255" class="slider green" id="S6"> <br> <br>
</div>
<div class="col-sm-1" id="V6"> 255 </div>
</div>
<div class="row">
<div class="col-sm-6">
<button type="button" onclick="alert('Hello world!')"> Automate </button>
</div>
<div class="col-sm-6">
<button type="button" onclick="alert('Hello world!')"> Automate </button>
</div>
</div>
</div>
</div>
</div>
<!-- ----------------------------------------------------------------------------------------------------- -->
</div>
</body>
</html>
<!--
<html>
<body>
<p>This is a paragraph.</p>
</body>
</html> -->