-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtextimage.html
288 lines (212 loc) · 12.6 KB
/
textimage.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Than Lwin Aung</title>
<link rel="stylesheet" href="./Content/font-awesome.min.css" />
<link rel="stylesheet" href="./Content/custom.css" />
<link rel="stylesheet" href="./Content/material-icons.css" type='text/css' media='all' />
<link href="./Content/style.css" rel="stylesheet" />
<link href="./Content/chosen.css" rel="stylesheet" />
<link href="./Content/railroad-diagrams.css" rel="stylesheet" />
<link href="./Content/jquery.webui-popover.css" rel="stylesheet" />
<script type='text/javascript' src="./Scripts/modernizr-2.6.2.js"></script>
<script type='text/javascript' src="./Scripts/jquery-1.10.2.js"></script>
<script type='text/javascript' src="./Scripts/bootstrap.js"></script>
<script type='text/javascript' src="./Scripts/railroad-diagrams.js"></script>
<script type='text/javascript' src="./Scripts/jquery.change.type.js"></script>
<script type='text/javascript' src="./Scripts/underscore.js"></script>
<script src="./Scripts/jquery.webui-popover.js"></script>
<script src="./Scripts/chosen.jquery.js"></script>
</head>
<body>
<header class="noo-header" id="noo-header">
<div class="navbar-wrapper">
<div class="navbar navbar-default fixed-top shrinkable">
<div class="container-boxed max">
<div class="navbar-header">
<h1 class="sr-only">Research Areas</h1>
<a class="navbar-toggle main-toggle collapsed" style="height:auto; line-height:50px;" title="Main Menu" data-toggle="collapse" data-target=".noo-navbar-collapse">
<span class="sr-only">Navigation</span>
<i style="font-size:20px;" class="fa fa-bars"></i>
</a>
</div>
<nav class="collapse navbar-collapse noo-navbar-collapse">
<ul class="navbar-nav sf-menu">
<li class="current-menu-item align-left">
<a href="./index.html">Home</a>
</li>
<li class="align-left">
<a href="./about.html">About Me</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div id="main-body" class="container body-content">
<div class="container-wrap">
<div class="main-content offset" style="padding-top:20px !important;">
<br />
<br />
<div class="row box-3">
<div class="col-md-12">
<div>
<h3>Synthetic Text Image Generation</h3>
<hr>
<p>
Generally speaking, a huge amount of data is necessary to train most, if not all, machine learning models. Unfortunately, there are very little or almost no big datasets for underpresented languages, such as Myanmar (မြန်မာ) Language.
</p>
<p>
Although there are many Machine Learning Models available for Text Spotting and Text Recognition, where we can get enough Text Image Dataset to train such models is highly questionable.
</p>
<p>
In addition, manually labelling for such huge Dataset is already out of question. Therefore, synthetically generating Synthetic Text Images are the only option to create such a huge dataset. Actually, I was inspired by <a href="https://www.robots.ox.ac.uk/~vgg/data/scenetext/" target="_blank" style="color:blue;"> Visual Geomery Group's SynthText Dataset</a>.
</p>
</div>
</div>
</div>
<br />
<br />
<div class="row box-3">
<div class="col-md-12">
<div>
<h3>Synthetic Myanmar Text Image with Bounding Box</h3>
<hr>
<div class="row" style="margin-left:0px; margin-right:0px; margin-top:0px;">
<div class="box-3 col-sm-12" style="padding:15px;">
<div class="col-sm-6">
<input id="syllable-bx-mm" type="checkbox" style="margin:10px; display:inline-block;"><label for="Text">Syllable Bounding Boxes</label>
</div>
<div class="col-sm-6">
<input id="text-bx-mm" type="checkbox" style="margin:10px; display:inline-block;"><label for="Table">Text Bounding Boxes</label>
</div>
</div>
</div>
<div class="row" style="margin-left:0px; margin-right:0px; margin-top:0px;">
<div id="result" class="box-3 grid-background" style="padding:0px; overflow:auto; height:435px;">
<svg width="650px" height="420px" xmlns="http://www.w3.org/2000/svg">
<image href="https://2kha.github.io/Images/I638361763330493838.jpg" height="420px" width="630px"></image>
<polygon class="syllables-mm" id="text-0" data-text="သ" points="73,108 152,108 152,148 73,148" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="syllables-mm" id="text-1" data-text="ဘာ" points="152,108 268,108 268,148 152,148" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="syllables-mm" id="text-2" data-text="ဝ" points="268,108 318,108 318,148 268,148" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="syllables-mm" id="text-3" data-text="အ" points="318,108 395,108 395,148 318,148" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="syllables-mm" id="text-4" data-text="လှ" points="395,108 479,108 479,172 395,172" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="labels-mm" points="73,108 479,108 479,172 73,172" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="row box-3">
<div class="col-md-12">
<div>
<h3>Synthetic English Text Image with Bounding Box</h3>
<hr>
<div class="row" style="margin-left:0px; margin-right:0px; margin-top:0px;">
<div class="box-3 col-sm-12" style="padding:15px;">
<div class="col-sm-6">
<input id="syllable-bx-en" type="checkbox" style="margin:10px; display:inline-block;"><label for="Text">Syllable Bounding Boxes</label>
</div>
<div class="col-sm-6">
<input id="text-bx-en" type="checkbox" style="margin:10px; display:inline-block;"><label for="Table">Text Bounding Boxes</label>
</div>
</div>
</div>
<div class="row" style="margin-left:0px; margin-right:0px; margin-top:0px;">
<div id="result" class="box-3 grid-background" style="padding:0px; overflow:auto; height:435px;">
<svg width="650px" height="420px" xmlns="http://www.w3.org/2000/svg">
<image href="https://2kha.github.io/Images/I638361769848545542.jpg" height="420px" width="630px"></image>
<polygon class="syllables-en" id="text-0" data-text="N" points="73,113 153,113 153,181 73,181" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="syllables-en" id="text-1" data-text="A" points="153,113 224,113 224,181 153,181" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="syllables-en" id="text-2" data-text="T" points="224,113 283,113 283,181 224,181" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="syllables-en" id="text-3" data-text="U" points="283,113 356,113 356,182 283,182" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="syllables-en" id="text-4" data-text="R" points="356,113 422,113 422,181 356,181" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="syllables-en" id="text-5" data-text="E" points="422,113 476,113 476,181 422,181" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
<polygon class="labels-en" points="73,113 476,113 476,182 73,182" style="cursor:pointer; display:none; fill-opacity: 0.1;stroke-width:1; stroke: rgb(0,255,0)"></polygon>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="row box-3">
<div class="col-md-12">
<div>
<svg height="32" class="octicon octicon-mark-github text-white" viewBox="0 0 16 16" version="1.1" width="32" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>
<a href="https://github.com/2kha" target="_blank" style="margin-left:50px; margin-top:-35px; display:block;">Please find me more on Github...</a>
</div>
</div>
</div>
<br />
<br />
<hr />
<footer>
<p>© <span id="c-date"></span> - Than Lwin Aung</p>
</footer>
</div>
<script>
$(document).ready(function(){
var date = new Date();
var year = date.getFullYear();
$("#c-date").html(year);
$("#syllable-bx-mm").unbind().bind("click", function () {
if ($("#syllable-bx-mm").is(":checked")) {
$("#text-bx-mm").prop('checked', false);
$(".syllables-mm").show();
$(".labels-mm").hide();
}
else {
$("#text-bx-mm").prop('checked', false);
$(".syllables-mm").hide();
$(".labels-mm").hide();
}
});
$("#text-bx-mm").unbind().bind("click", function () {
if ($("#text-bx-mm").is(":checked")) {
$("#syllable-bx-mm").prop('checked', false);
$(".syllables-mm").hide();
$(".labels-mm").show();
}
else {
$("#syllable-bx-mm").prop('checked', false);
$(".syllables-mm").hide();
$(".labels-mm").hide();
}
});
$("#syllable-bx-en").unbind().bind("click", function () {
if ($("#syllable-bx-en").is(":checked")) {
$("#text-bx-en").prop('checked', false);
$(".syllables-en").show();
$(".labels-en").hide();
}
else {
$("#text-bx-en").prop('checked', false);
$(".syllables-en").hide();
$(".labels-en").hide();
}
});
$("#text-bx-en").unbind().bind("click", function () {
if ($("#text-bx-en").is(":checked")) {
$("#syllable-bx-en").prop('checked', false);
$(".syllables-en").hide();
$(".labels-en").show();
}
else {
$("#syllable-bx-en").prop('checked', false);
$(".syllables-en").hide();
$(".labels-en").hide();
}
});
});
</script>
</body>
</html>