fasdfsa commited on
Commit
a55b0d7
·
1 Parent(s): f24483e

add IC15 官方数据集

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. aliocr_IC15_convert.py +561 -1
  2. datasets/icdar2015/test_gts/gt_img_1.txt +8 -0
  3. datasets/icdar2015/test_gts/gt_img_10.txt +10 -0
  4. datasets/icdar2015/test_gts/gt_img_100.txt +12 -0
  5. datasets/icdar2015/test_gts/gt_img_101.txt +3 -0
  6. datasets/icdar2015/test_gts/gt_img_102.txt +4 -0
  7. datasets/icdar2015/test_gts/gt_img_103.txt +25 -0
  8. datasets/icdar2015/test_gts/gt_img_104.txt +9 -0
  9. datasets/icdar2015/test_gts/gt_img_105.txt +1 -0
  10. datasets/icdar2015/test_gts/gt_img_106.txt +24 -0
  11. datasets/icdar2015/test_gts/gt_img_107.txt +14 -0
  12. datasets/icdar2015/test_gts/gt_img_108.txt +16 -0
  13. datasets/icdar2015/test_gts/gt_img_109.txt +16 -0
  14. datasets/icdar2015/test_gts/gt_img_11.txt +4 -0
  15. datasets/icdar2015/test_gts/gt_img_110.txt +10 -0
  16. datasets/icdar2015/test_gts/gt_img_111.txt +9 -0
  17. datasets/icdar2015/test_gts/gt_img_112.txt +22 -0
  18. datasets/icdar2015/test_gts/gt_img_113.txt +20 -0
  19. datasets/icdar2015/test_gts/gt_img_114.txt +14 -0
  20. datasets/icdar2015/test_gts/gt_img_115.txt +6 -0
  21. datasets/icdar2015/test_gts/gt_img_116.txt +7 -0
  22. datasets/icdar2015/test_gts/gt_img_117.txt +7 -0
  23. datasets/icdar2015/test_gts/gt_img_118.txt +6 -0
  24. datasets/icdar2015/test_gts/gt_img_119.txt +6 -0
  25. datasets/icdar2015/test_gts/gt_img_12.txt +16 -0
  26. datasets/icdar2015/test_gts/gt_img_120.txt +16 -0
  27. datasets/icdar2015/test_gts/gt_img_121.txt +21 -0
  28. datasets/icdar2015/test_gts/gt_img_122.txt +22 -0
  29. datasets/icdar2015/test_gts/gt_img_123.txt +4 -0
  30. datasets/icdar2015/test_gts/gt_img_124.txt +7 -0
  31. datasets/icdar2015/test_gts/gt_img_125.txt +34 -0
  32. datasets/icdar2015/test_gts/gt_img_126.txt +15 -0
  33. datasets/icdar2015/test_gts/gt_img_127.txt +9 -0
  34. datasets/icdar2015/test_gts/gt_img_128.txt +3 -0
  35. datasets/icdar2015/test_gts/gt_img_129.txt +10 -0
  36. datasets/icdar2015/test_gts/gt_img_13.txt +20 -0
  37. datasets/icdar2015/test_gts/gt_img_130.txt +10 -0
  38. datasets/icdar2015/test_gts/gt_img_131.txt +8 -0
  39. datasets/icdar2015/test_gts/gt_img_132.txt +11 -0
  40. datasets/icdar2015/test_gts/gt_img_133.txt +20 -0
  41. datasets/icdar2015/test_gts/gt_img_134.txt +3 -0
  42. datasets/icdar2015/test_gts/gt_img_135.txt +3 -0
  43. datasets/icdar2015/test_gts/gt_img_136.txt +9 -0
  44. datasets/icdar2015/test_gts/gt_img_137.txt +11 -0
  45. datasets/icdar2015/test_gts/gt_img_138.txt +12 -0
  46. datasets/icdar2015/test_gts/gt_img_139.txt +2 -0
  47. datasets/icdar2015/test_gts/gt_img_14.txt +6 -0
  48. datasets/icdar2015/test_gts/gt_img_140.txt +16 -0
  49. datasets/icdar2015/test_gts/gt_img_141.txt +22 -0
  50. datasets/icdar2015/test_gts/gt_img_142.txt +48 -0
aliocr_IC15_convert.py CHANGED
@@ -1,5 +1,565 @@
1
 
2
- # opencv-python==4.6.0.66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
 
5
 
 
1
 
2
+ # pip install numpy==1.26.4 opencv-python==4.6.0.66
3
+
4
+
5
+ """
6
+
7
+ 给 PaddleOCR 用,前面是坐标和图片都变换;这里图像不变,坐标不变
8
+
9
+
10
+ 将阿里OCR 的识别结果(图片和标注)转换成 icdar2015 格式 (注意:它的文本是含 utf8 bom 的)
11
+
12
+ 给 mmocr 训练用。格式是 icdar2015 的格式,文件夹的组织方式是按照 mmocr 的要求创建的
13
+
14
+ """
15
+
16
+
17
+ """
18
+
19
+ ! unzip ./GD500.zip -d DB/datasets
20
+
21
+ icdar2015 文本检测数据集
22
+ 标注格式: x1,y1,x2,y2,x3,y3,x4,y4,text
23
+
24
+ 其中, x1,y1为左上角坐标,x2,y2为右上角坐标,x3,y3为右下角坐标,x4,y4为左下角坐标。
25
+
26
+ ### 表示text难以辨认。
27
+ """
28
+
29
+
30
+
31
+
32
+ import random
33
+ from pathlib import Path
34
+ import os
35
+ import glob
36
+ import base64
37
+ from importlib.resources import path
38
+ import math
39
+ import numpy as np
40
+ import cv2
41
+ import json
42
+ import decimal
43
+ import datetime
44
+ from pickletools import uint8
45
+ class DecimalEncoder(json.JSONEncoder):
46
+ def default(self, o):
47
+ if isinstance(o, decimal.Decimal):
48
+ return float(o)
49
+ elif isinstance(o, datetime.datetime):
50
+ return str(o)
51
+ super(DecimalEncoder, self).default(o)
52
+
53
+
54
+ def save_json(filename, dics):
55
+ with open(filename, 'w', encoding='utf-8') as fp:
56
+ json.dump(dics, fp, indent=4, cls=DecimalEncoder, ensure_ascii=False)
57
+ fp.close()
58
+
59
+
60
+ def load_json(filename):
61
+ with open(filename, encoding='utf-8') as fp:
62
+ js = json.load(fp)
63
+ fp.close()
64
+ return js
65
+
66
+ # convert string to json
67
+
68
+
69
+ def parse(s):
70
+ return json.loads(s, strict=False)
71
+
72
+ # convert dict to string
73
+
74
+
75
+ def string(d):
76
+ return json.dumps(d, cls=DecimalEncoder, ensure_ascii=False)
77
+
78
+
79
+ def transform(points, M):
80
+ # points 算出四个点变换后移动到哪里了
81
+ # points = np.array([[word_x, word_y], # 左上
82
+ # [word_x + word_width, word_y], # 右上
83
+ # [word_x + word_width, word_y + word_height], # 右下
84
+ # [word_x, word_y + word_height], # 左下
85
+ # ])
86
+ # add ones
87
+ ones = np.ones(shape=(len(points), 1))
88
+
89
+ points_ones = np.hstack([points, ones])
90
+
91
+ # transform points
92
+ transformed_points = M.dot(points_ones.T).T
93
+
94
+ transformed_points_int = np.round(
95
+ transformed_points, decimals=0).astype(np.int32) # 批量四舍五入
96
+
97
+ return transformed_points_int
98
+
99
+
100
+ def cutPoly(img, pts):
101
+ # img = cv2.imdecode(np.fromfile('./t.png', dtype=np.uint8), -1)
102
+ # pts = np.array([[10,150],[150,100],[300,150],[350,100],[310,20],[35,10]])
103
+
104
+ ## (1) Crop the bounding rect
105
+ rect = cv2.boundingRect(pts)
106
+ x,y,w,h = rect
107
+ croped = img[y:y+h, x:x+w].copy()
108
+
109
+ ## (2) make mask
110
+ pts = pts - pts.min(axis=0)
111
+
112
+ mask = np.zeros(croped.shape[:2], np.uint8)
113
+ cv2.drawContours(mask, [pts], -1, (255, 255, 255), -1, cv2.LINE_AA)
114
+
115
+ ## (3) do bit-op
116
+ dst = cv2.bitwise_and(croped, croped, mask=mask)
117
+
118
+ ## (4) add the white background
119
+ bg = np.ones_like(croped, np.uint8)*255
120
+ cv2.bitwise_not(bg,bg, mask=mask)
121
+ dst2 = bg+ dst
122
+
123
+
124
+ # cv2.imwrite("croped.png", croped)
125
+ # cv2.imwrite("mask.png", mask)
126
+ # cv2.imwrite("dst.png", dst)
127
+ # cv2.imwrite("dst2.png", dst2)
128
+
129
+ return dst2
130
+
131
+
132
+
133
+ if __name__ == "__main__":
134
+
135
+ # 验证原版的文本标记框
136
+ im = './train_images/img_1.jpg'
137
+ gt = './train_gts/gt_img_1.txt'
138
+
139
+ # 验证自已生成的标记框
140
+ # im = './icdar2015_aliocr/imgs/training/img_1.jpg'
141
+ # gt = './icdar2015_aliocr/annotations/training/gt_img_1.txt'
142
+
143
+ if os.path.exists(gt):
144
+
145
+ items = []
146
+ reader = open(gt, 'r', encoding='utf-8-sig').readlines()
147
+ for line in reader:
148
+ item = {}
149
+ parts = line.strip().split(',')
150
+ label = parts[-1]
151
+ if 'TD' in gt and label == '1':
152
+ label = '###'
153
+ line = [i.strip('\ufeff').strip('\xef\xbb\xbf') for i in parts]
154
+ if 'icdar' in gt:
155
+ poly = np.array(list(map(float, line[:8]))).reshape(
156
+ (-1, 2)).tolist()
157
+ else:
158
+ num_points = math.floor((len(line) - 1) / 2) * 2
159
+ poly = np.array(list(map(float, line[:num_points]))).reshape(
160
+ (-1, 2)).tolist()
161
+ item['poly'] = poly
162
+ item['text'] = label
163
+ # 多边形是用一个个的点表示的,起点连接第二个点,第二个连接第三个 ... 最后一点连接起点,构成一个闭合的区域
164
+ item['points'] = poly
165
+ # 此标记表示文字模糊不可辨认,文本框的标记是不可靠的
166
+ item['ignore'] = True if label == '###' else False
167
+ items.append(item)
168
+
169
+ img = cv2.imdecode(np.fromfile(im, dtype=np.uint8), -1)
170
+ # DBNet 原版代码只能处理彩图,所以统一处理成彩图
171
+ img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
172
+
173
+ for i in range(len(items)):
174
+ poly = items[i]['poly']
175
+ poly = np.array(poly)
176
+ poly = poly.astype(np.int32)
177
+
178
+ #cv2.fillPoly(img, pts=[ poly ], color=(0, 0, 255))
179
+
180
+ b = random.randint(0, 255) # 用来生成[a,b]之间的随意整数,包括两个边界值。
181
+ g = random.randint(0, 255)
182
+ r = random.randint(0, 255)
183
+
184
+ # 只画线,不填充 # 就是画线,从起点连到第二个点 ... 最后一个点连到第一个点
185
+ cv2.polylines(img, [poly], isClosed=True,
186
+ color=(b, g, r), thickness=1)
187
+
188
+ #cv2.imwrite("poly.jpg", img)
189
+
190
+ # cv2.imshow("poly", img)
191
+ # cv2.waitKey()
192
+
193
+ # 开始转换
194
+
195
+ out_dir = 'icdar2015_aliocr'
196
+
197
+ # https://help.aliyun.com/document_detail/294540.html 阿里云ocr结果字段定义
198
+ # prism-wordsInfo 里的 angle 文字块的角度,这个角度只影响width和height,当角度为-90、90、-270、270,width和height的值需要自行互换
199
+
200
+ dir_json = './data/json' # '/yingedu/www/ocr_server/data/json'
201
+ dir_img = './data/img' # '/yingedu/www/ocr_server/data/img'
202
+
203
+ train_list = []
204
+ train_list_txt_path = os.path.join(out_dir, 'train_list.txt')
205
+
206
+ g_count = 1
207
+
208
+ json_paths = glob.glob('{}/*.json'.format(dir_json), recursive=True)
209
+
210
+ for json_path in json_paths:
211
+
212
+ base = Path(json_path).stem
213
+
214
+ img_path = os.path.join(dir_img, '{}.txt'.format(base))
215
+
216
+ if not os.path.exists(img_path): # 没有相应的图片,可能被删除了
217
+ continue
218
+
219
+ jsn = load_json(json_path)
220
+
221
+ with open(img_path, "r", encoding="utf-8") as fp:
222
+ imgdata = fp.read()
223
+ imgdata = base64.b64decode(imgdata)
224
+ imgdata = np.frombuffer(imgdata, np.uint8)
225
+ img = cv2.imdecode(imgdata, cv2.IMREAD_UNCHANGED)
226
+
227
+ # cv2.imshow('img', img)
228
+ # cv2.waitKey(0)
229
+
230
+ if len(img.shape) != 3: # 转彩图
231
+ img_color = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
232
+ img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR) # DBNet 原版只能处理彩图,这里转一下
233
+
234
+ else:
235
+ img_color = img.copy()
236
+
237
+ img_color_origin = img_color.copy()
238
+ img_color_origin2 = img_color.copy()
239
+
240
+
241
+ # 生成1000 张一模一样的图
242
+ for i in range(1, 1000+1):
243
+
244
+ num_img = i
245
+
246
+ img_name = "img_{}.jpg".format(num_img)
247
+ gt_name = "gt_img_{}.txt".format(num_img)
248
+
249
+ gt_txt_list = []
250
+
251
+ train_list.append(img_name)
252
+ # num_img += 1
253
+
254
+ img_path = os.path.join(out_dir, 'imgs', 'training', img_name)
255
+ img_gt_path = os.path.join(
256
+ out_dir, 'annotations', 'training', gt_name)
257
+
258
+ cv2.imwrite(img_path, img)
259
+
260
+ wordsInfo = jsn['prism_wordsInfo']
261
+ for j in range(len(wordsInfo)):
262
+ jo = wordsInfo[j]
263
+ word = jo["word"]
264
+ # prism-wordsInfo 里的 angle 文字块的角度,这个角度只影响width和height,当角度为-90、90、-270、270,width和height的值需要自行互换
265
+ angle = jo['angle']
266
+
267
+ img_color = img_color_origin.copy()
268
+
269
+ word_x = jo['x']
270
+ word_y = jo['y']
271
+ word_width = jo['width']
272
+ word_height = jo['height']
273
+
274
+ if abs(angle) == 90 or abs(angle) == 270:
275
+ word_width = jo['height']
276
+ word_height = jo['width']
277
+ elif angle != 0:
278
+
279
+ # 变换前画出绿框,方便追踪点的前后变化
280
+ # img_color = cv2.rectangle(img_color, (word_x, word_y), (
281
+ # word_x + word_width, word_y + word_height), (0, 255, 0), 2) # 矩形的左上角, 矩形的右下角
282
+
283
+ # cv2.imshow("green", img_color)
284
+ # cv2.waitKey(0)
285
+
286
+ # 变换前的多边形蓝框
287
+ points = np.array([
288
+ [word_x, word_y], # 左上
289
+ [word_x + word_width, word_y], # 右上
290
+ [word_x + word_width, word_y + word_height], # 右下
291
+ [word_x, word_y + word_height], # 左下
292
+ ])
293
+
294
+ # # cv2.fillPoly(img_color, pts=[points], color=(255, 0, 0)) # 填充
295
+ # cv2.polylines(img_color, [points], isClosed=True, color=(
296
+ # 255, 0, 0), thickness=1) # 只画线,不填充
297
+
298
+ # cv2.imshow("polys", img_color)
299
+ # cv2.waitKey(0)
300
+
301
+ # 获取图像的维度,并计算中心
302
+ (h, w) = img_color.shape[:2]
303
+ (cX, cY) = (w // 2, h // 2)
304
+
305
+ # - (cX,cY): 旋转的中心���坐标
306
+ # - 180: 旋转的度数,正度数表示逆时针旋转,而负度数表示顺时针旋转。
307
+ # - 1.0:旋转后图像的大小,1.0原图,2.0变成原来的2倍,0.5变成原来的0.5倍
308
+ # 1° = π/180弧度 1 弧度 = 180 / 3.1415926 // 0.0190033 是Mathematica 算出来的弧度,先转换成角度 // -0.0190033 * (180 / 3.1415926)
309
+ M = cv2.getRotationMatrix2D((cX, cY), angle, 1.0)
310
+ img_color = cv2.warpAffine(img_color, M, (w, h))
311
+ img_color_transform = img_color.copy()
312
+
313
+ # cv2.imshow("after trans", img_color)
314
+ # cv2.waitKey(0)
315
+
316
+ # https://docs.opencv.org/2.4/doc/tutorials/imgproc/imgtrans/warp_affine/warp_affine.html # 原理
317
+ # https://stackoverflow.com/questions/30327659/how-can-i-remap-a-point-after-an-image-rotation # How can I remap a point after an image rotation?
318
+ # 如何得到移动后的坐标点
319
+
320
+ # points 算出四个点变换后移动到哪里了
321
+ points = np.array([[word_x, word_y], # 左上
322
+ # 右上
323
+ [word_x + word_width, word_y],
324
+ [word_x + word_width, word_y + \
325
+ word_height], # 右下
326
+ [word_x, word_y + word_height], # 左下
327
+ ])
328
+ # add ones
329
+ ones = np.ones(shape=(len(points), 1))
330
+
331
+ points_ones = np.hstack([points, ones])
332
+
333
+ # transform points
334
+ transformed_points = M.dot(points_ones.T).T
335
+
336
+ transformed_points_int = np.round(
337
+ transformed_points, decimals=0).astype(np.int32) # 批量四舍五入
338
+
339
+ cv2.polylines(img_color, [transformed_points_int], isClosed=True, color=(
340
+ 0, 0, 255), thickness=2) # 画转换后的点
341
+
342
+
343
+ cv2.polylines(img_color_origin, [points], isClosed=True, color=(
344
+ random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)), thickness=2) # 画转换前的点
345
+
346
+
347
+
348
+ # cv2.imshow("orgin", img_color_origin)
349
+ # cv2.waitKey(0)
350
+
351
+
352
+
353
+
354
+ # 四个角的位置 # 左上、右上、右下、左下,当NeedRotate为true时,如果最外层的angle不为0,需要按照angle矫正图片后,坐标才准确
355
+ pos = jo["pos"]
356
+ x = int(pos[0]["x"]) # 左上
357
+ y = int(pos[0]["y"])
358
+
359
+ x2 = int(pos[2]["x"]) # 右下
360
+ y2 = int(pos[2]["y"])
361
+
362
+ lu = [pos[0]['x'], pos[0]['y']] # left up 四个角顺时针方向数
363
+ ru = [pos[1]['x'], pos[1]['y']]
364
+ rd = [pos[2]['x'], pos[2]['y']]
365
+ ld = [pos[3]['x'], pos[3]['y']]
366
+
367
+ # 生成 icdar2015 格式的人工标记训练数据(用于训练 mmocr)
368
+ #gt_txt_list.append( "{},{},{},{},{},{},{},{},{}".format(lu[0], lu[1], ru[0], ru[1], rd[0], rd[1], ld[0], ld[1], word) )
369
+
370
+ # 绘制矩形
371
+ start_point = (x, y) # 矩形的左上角
372
+
373
+ end_point = (x2, y2) # 矩形的右下角
374
+
375
+ color = (0, 0, 255) # BGR
376
+
377
+ thickness = 2
378
+
379
+ # 逐行画框
380
+ # img_color = cv2.rectangle(img_color, start_point, end_point, color, thickness)
381
+ # cv2.imshow("box", img_color)
382
+
383
+ # cv2.waitKey(0)
384
+
385
+ points = [ lu, ru, rd, ld ]
386
+
387
+
388
+
389
+ points0 = np.array([[word_x, word_y], # 左上
390
+ # 右上
391
+ [word_x + word_width, word_y],
392
+ [word_x + word_width, word_y + \
393
+ word_height], # 右下
394
+ [word_x, word_y + word_height], # 左下
395
+ ])
396
+ points1 = np.array( [ lu, ru, rd, ld ] )
397
+
398
+
399
+ if not (abs(angle) == 90 or abs(angle) == 270) and angle != 0:
400
+ points = transform( points, M )
401
+ else:
402
+ points = np.array(points)
403
+
404
+ ps3 = np.array(
405
+ [
406
+ [min( points[0][0], points1[0][0] ), min( points[0][1], points1[0][1] )], # 左上(取最两者中最小的)
407
+
408
+ [max( points[1][0], points1[1][0] ), min( points[1][1], points1[1][1] )], # 右上
409
+
410
+ [max( points[2][0], points1[2][0] ), max( points[2][1], points1[2][1] )], # 右下
411
+
412
+ [min( points[3][0], points1[3][0] ), max( points[3][1], points1[3][1] )] # 左下
413
+ ]
414
+ )
415
+
416
+ img_cuted = cutPoly(img, ps3)
417
+ cv2.imwrite(f'./tmp/{g_count}.jpg', img_cuted)
418
+ with open(f'./tmp/{g_count}.txt', 'w', encoding='utf-8') as f:
419
+ f.write(word)
420
+ # g_count += 1
421
+
422
+ # cv2.polylines(img_color, [points], isClosed=True, color=( # 多边形,框得比较全
423
+ # 100, 0, 255), thickness=2) # 只画线,不填充
424
+
425
+
426
+ # cv2.polylines(img_color_origin, [ points1 ], isClosed=True, color=(
427
+ # random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)), thickness=2) # 画转换前的点
428
+
429
+ # cv2.imshow("orgin", img_color_origin)
430
+ # cv2.waitKey(0)
431
+
432
+ # # cv2.imshow("box", img_color)
433
+ # # cv2.waitKey(0)
434
+
435
+ # # img_color = cv2.rectangle(img_color, points[0], points[2], color, thickness) # 正常矩形,框不完全
436
+ # # cv2.imshow("box", img_color)
437
+
438
+ # # cv2.waitKey(0)
439
+
440
+
441
+
442
+
443
+
444
+ # if not (abs(angle) == 90 or abs(angle) == 270) and angle != 0:
445
+
446
+ # t = word
447
+ # ps = np.array(
448
+ # [
449
+ # [min( transformed_points_int[0][0], points[0][0] ), min( transformed_points_int[0][1], points[0][1] )], # 左上(取最两者中最小的)
450
+
451
+ # [max( transformed_points_int[1][0], points[1][0] ), min( transformed_points_int[1][1], points[1][1] )], # 右上
452
+
453
+ # [max( transformed_points_int[2][0], points[2][0] ), max( transformed_points_int[2][1], points[2][1] )], # 右下
454
+
455
+ # [min( transformed_points_int[3][0], points[3][0] ), max( transformed_points_int[3][1], points[3][1] )] # 左下
456
+ # ]
457
+ # )
458
+
459
+
460
+ # ps2 = np.array(
461
+ # [
462
+ # [min( points0[0][0], points1[0][0] ), min( points0[0][1], points1[0][1] )], # 左上(取最两者中最小的)
463
+
464
+ # [max( points0[1][0], points1[1][0] ), min( points0[1][1], points1[1][1] )], # 右上
465
+
466
+ # [max( points0[2][0], points1[2][0] ), max( points0[2][1], points1[2][1] )], # 右下
467
+
468
+ # [min( points0[3][0], points1[3][0] ), max( points0[3][1], points1[3][1] )] # 左下
469
+ # ]
470
+ # )
471
+
472
+ # # img_cuted = cutPoly(img_color_transform, ps)
473
+ # # cv2.imwrite(f'./tmp/{g_count}.jpg', img_cuted)
474
+
475
+ # # with open(f'./tmp/{g_count}.txt', 'w', encoding='utf-8') as f:
476
+ # # f.write(word)
477
+
478
+ # # g_count += 1
479
+
480
+ # cv2.polylines(img_color, [ ps ], isClosed=True, color=(
481
+ # 255, 0, 0), thickness=2) # 只画线,不填充
482
+
483
+ # cv2.polylines(img_color_origin, [ ps2 ], isClosed=True, color=(
484
+ # random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)), thickness=2) # 只画线,不填充
485
+
486
+ # cv2.imshow("orgin", img_color_origin)
487
+ # cv2.waitKey(0)
488
+
489
+ # img_cuted = cutPoly(img, ps2)
490
+ # cv2.imwrite(f'./tmp/{g_count}.jpg', img_cuted)
491
+
492
+ # with open(f'./tmp/{g_count}.txt', 'w', encoding='utf-8') as f:
493
+ # f.write(word)
494
+
495
+ # g_count += 1
496
+
497
+
498
+ # # cv2.imshow("box", img_color)
499
+
500
+ # # cv2.waitKey(0)
501
+
502
+ # lastx_mini = 0 # 下一个字符x 坐标的下界(肯定不小于这个值)
503
+ # prew = 0 # 上一个字符的宽度
504
+ # words = ""
505
+ # charInfo = jo["charInfo"]
506
+
507
+ # min_cx = 9999 # 最小左上角
508
+ # min_cy = 9999
509
+
510
+ # max_cxcw = -1 # 最大右下角
511
+ # max_cych = -1
512
+
513
+ # for i in range(len(charInfo)):
514
+ # joc = charInfo[i]
515
+ # c = joc["word"]
516
+ # cx = int(joc["x"])
517
+ # cy = int(joc["y"])
518
+ # cw = int(joc["w"])
519
+ # ch = int(joc["h"])
520
+
521
+ # if cx < min_cx:
522
+ # min_cx = cx
523
+ # if cy < min_cy:
524
+ # min_cy = cy
525
+
526
+ # if cx + cw > max_cxcw:
527
+ # max_cxcw = cx + cw
528
+
529
+ # if cy + ch > max_cych:
530
+ # max_cych = cy + ch
531
+
532
+ # # 绘制矩形
533
+ # start_point = (cx, cy) # 矩形的左上角
534
+
535
+ # end_point = (cx + cw, cy + ch) # 矩形的右下角
536
+
537
+ # color = (0, 0, 255) # BGR
538
+
539
+ # thickness = 2
540
+
541
+ # # 逐字画框
542
+ # # img_color = cv2.rectangle(
543
+ # # img_color, start_point, end_point, color, thickness)
544
+ # # cv2.imshow("box", img_color)
545
+ # # cv2.waitKey(0)
546
+
547
+ # # 这个框更准一些
548
+ # # img_color = cv2.rectangle(
549
+ # # img_color, (min_cx, min_cy), (max_cxcw, max_cych), (0, 255, 0), thickness)
550
+ # # cv2.imshow("box", img_color)
551
+ # # cv2.waitKey(0)
552
+
553
+ # # fix me: 如果上面的行框的左边要比这里更左,那就以行框的左边为准
554
+ # # 因为发现单个字的框会有漏字的现想
555
+
556
+ # gt_txt_list.append("{},{},{},{},{},{},{},{},{}".format(
557
+ # min_cx, min_cy, max_cxcw, min_cy, max_cxcw, max_cych, min_cx, max_cych, word))
558
+
559
+ # gt_txt = '\n'.join(gt_txt_list)
560
+
561
+ # with open(img_gt_path, "w", encoding='utf-8-sig') as fp:
562
+ # fp.write(gt_txt)
563
 
564
 
565
 
datasets/icdar2015/test_gts/gt_img_1.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 933,255,954,255,956,277,936,277,###
2
+ 172,323,195,324,195,339,177,339,###
3
+ 83,270,118,271,115,294,88,291,###
4
+ 940,310,962,310,962,320,940,320,###
5
+ 946,356,976,351,978,368,950,374,###
6
+ 940,322,962,322,964,333,943,334,###
7
+ 128,344,210,342,206,361,128,362,###
8
+ 312,303,360,303,360,312,312,312,###
datasets/icdar2015/test_gts/gt_img_10.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ 27,17,103,22,106,47,30,45,Please
2
+ 107,20,159,26,159,48,109,47,lower
3
+ 161,26,198,27,199,51,163,51,your
4
+ 201,28,251,31,251,48,201,46,volume
5
+ 35,52,97,51,100,76,39,79,when
6
+ 101,55,140,53,143,80,103,81,you
7
+ 141,55,181,53,183,77,144,79,pass
8
+ 182,51,205,52,205,76,185,77,###
9
+ 41,83,148,77,151,103,45,113,residential
10
+ 152,82,198,80,199,99,153,101,areas
datasets/icdar2015/test_gts/gt_img_100.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 454,115,477,115,474,130,457,132,###
2
+ 476,114,524,112,525,132,474,130,diverse
3
+ 560,83,630,85,636,113,562,113,tastes
4
+ 474,133,567,128,568,142,475,141,###
5
+ 523,110,580,115,580,127,525,128,flavours
6
+ 515,85,558,83,558,111,517,111,the
7
+ 408,82,518,80,520,113,410,114,Refishing
8
+ 660,82,717,82,717,101,661,98,DINING
9
+ 935,134,963,135,962,152,934,151,###
10
+ 657,127,695,127,695,135,657,135,###
11
+ 487,182,528,182,528,194,487,194,DINING
12
+ 483,194,538,195,538,208,483,207,###
datasets/icdar2015/test_gts/gt_img_101.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 831,115,1003,72,1012,171,835,195,SALE
2
+ 410,187,451,192,447,207,406,203,MARC
3
+ 451,191,485,194,484,208,450,205,###
datasets/icdar2015/test_gts/gt_img_102.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 615,246,698,251,694,281,615,272,ST.MARC
2
+ 698,252,742,261,740,283,697,278,CAFE
3
+ 865,223,898,213,901,233,867,243,###
4
+ 902,212,945,198,946,217,903,231,###
datasets/icdar2015/test_gts/gt_img_103.txt ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1058,377,1144,381,1147,412,1062,408,###
2
+ 1062,405,1152,406,1155,438,1065,437,###
3
+ 23,327,110,325,111,346,24,348,###
4
+ 736,266,781,262,783,276,738,281,###
5
+ 345,340,428,334,430,364,346,370,###
6
+ 750,203,788,202,791,223,752,224,EXIT
7
+ 875,232,948,222,948,238,875,248,###
8
+ 131,260,404,250,401,325,130,325,ANGKOK
9
+ 1024,217,1111,195,1115,226,1028,248,###
10
+ 1033,244,1115,228,1125,291,1043,306,KOK
11
+ 1038,302,1124,292,1130,317,1044,327,ABUR
12
+ 1062,325,1133,320,1135,355,1064,361,###
13
+ 1068,355,1141,354,1143,381,1071,382,###
14
+ 941,248,1002,233,1006,260,945,275,###
15
+ 946,271,967,265,973,315,952,321,###
16
+ 960,337,1011,334,1012,364,961,367,###
17
+ 958,361,1030,362,1032,386,961,385,PATH
18
+ 970,383,1033,383,1034,410,971,410,###
19
+ 968,405,1041,406,1040,432,967,431,CHAT
20
+ 954,320,978,317,978,341,954,343,###
21
+ 738,291,757,288,759,302,740,305,###
22
+ 757,290,790,286,790,299,757,303,###
23
+ 875,249,922,244,922,259,875,264,###
24
+ 802,281,839,279,839,289,802,292,###
25
+ 737,279,783,276,782,286,737,289,###
datasets/icdar2015/test_gts/gt_img_104.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 53,106,152,128,151,200,55,197,END
2
+ 51,210,160,201,163,326,61,352,###
3
+ 78,354,157,335,161,392,84,417,MILE
4
+ 67,432,173,388,177,442,74,495,SPEED
5
+ 651,108,666,106,666,123,651,125,###
6
+ 431,214,475,214,475,223,431,223,###
7
+ 1148,207,1180,204,1180,220,1149,223,gels
8
+ 1150,188,1166,187,1167,200,1150,201,###
9
+ 110,479,151,458,152,475,112,497,###
datasets/icdar2015/test_gts/gt_img_105.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 0,6,352,94,357,172,1,77,aigonLotus
datasets/icdar2015/test_gts/gt_img_106.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 447,560,475,555,474,567,446,572,###
2
+ 892,352,948,376,946,398,892,377,Marina
3
+ 911,388,948,402,944,425,910,411,MRT
4
+ 952,408,1007,436,1001,454,950,431,###
5
+ 1004,434,1046,453,1045,468,1004,452,Station
6
+ 950,375,985,391,983,411,948,399,Link
7
+ 318,563,434,543,434,555,318,577,MARINA
8
+ 314,575,428,554,427,577,307,597,LINK
9
+ 1241,38,1255,38,1254,63,1240,63,###
10
+ 396,121,447,123,448,136,397,134,PARTI
11
+ 317,113,384,116,383,137,316,134,PLAN
12
+ 245,118,310,121,306,136,242,134,###
13
+ 443,230,680,208,675,270,438,291,###
14
+ 696,212,860,204,857,261,694,268,###
15
+ 383,192,398,192,398,208,383,208,###
16
+ 216,131,242,455,226,532,188,136,###
17
+ 331,550,360,546,361,554,332,557,###
18
+ 363,545,416,537,417,544,364,552,###
19
+ 419,536,427,535,428,543,420,544,###
20
+ 429,534,464,528,467,535,429,542,###
21
+ 431,545,455,537,468,546,448,558,###
22
+ 588,350,601,349,601,355,588,357,###
23
+ 787,326,800,327,800,333,787,336,###
24
+ 388,108,428,110,428,121,388,121,###
datasets/icdar2015/test_gts/gt_img_107.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 614,159,646,159,645,173,606,176,@B1
2
+ 260,55,475,33,482,85,259,99,MARINA
3
+ 516,122,565,122,568,137,518,141,More
4
+ 612,111,698,104,702,122,613,128,MARINA
5
+ 614,127,698,119,698,153,607,160,LINK
6
+ 500,33,705,13,705,63,502,79,SQUARE
7
+ 524,146,598,142,601,156,524,159,Shopping
8
+ 526,163,597,158,598,178,525,179,&Dining!
9
+ 158,325,171,322,171,330,159,332,###
10
+ 14,342,34,340,33,347,13,349,###
11
+ 32,340,42,340,44,347,34,347,###
12
+ 44,337,64,336,66,345,45,347,###
13
+ 65,336,82,334,81,344,64,346,###
14
+ 1,343,10,343,10,351,1,351,###
datasets/icdar2015/test_gts/gt_img_108.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 655,144,697,139,695,158,652,164,Link
2
+ 545,158,572,153,569,176,545,178,B1,
3
+ 353,179,367,181,370,203,350,199,###
4
+ 374,178,437,170,436,194,375,198,dining
5
+ 444,170,515,162,514,187,442,193,options
6
+ 252,193,345,178,346,207,248,216,shopping
7
+ 520,161,542,161,541,178,521,180,###
8
+ 192,200,246,193,247,215,189,219,More
9
+ 583,153,650,147,648,165,582,172,Marina
10
+ 349,226,433,218,433,258,345,268,This
11
+ 442,216,521,212,521,247,443,260,way
12
+ 523,205,566,204,568,240,527,244,###
13
+ 283,283,497,258,492,292,283,323,Esplanade
14
+ 504,250,637,244,637,271,500,292,Station
15
+ 226,442,329,429,329,447,227,461,MARINA:
16
+ 328,429,404,416,406,436,329,446,SQUARE
datasets/icdar2015/test_gts/gt_img_109.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 578,222,667,241,661,296,577,288,###
2
+ 452,205,561,225,558,286,453,274,LOVE
3
+ 142,350,227,348,231,381,142,381,###
4
+ 154,381,220,384,215,411,154,414,###
5
+ 128,414,242,410,248,447,131,458,Organto
6
+ 335,354,386,355,386,384,334,383,LOVE
7
+ 400,350,444,357,446,384,400,383,###
8
+ 664,483,724,476,728,497,667,508,###
9
+ 325,411,381,407,378,421,323,424,###
10
+ 305,430,377,423,375,437,303,444,###
11
+ 288,385,435,379,435,395,286,403,###
12
+ 555,237,582,240,583,275,555,274,###
13
+ 598,300,621,297,622,311,598,314,###
14
+ 858,339,898,339,924,495,871,514,###
15
+ 3,384,19,385,22,405,2,403,###
16
+ 385,363,399,363,400,382,385,382,###
datasets/icdar2015/test_gts/gt_img_11.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 404,64,465,56,466,71,404,79,BEWARE
2
+ 468,54,489,52,490,67,469,69,###
3
+ 393,83,502,67,503,83,393,99,MAINTENANCE
4
+ 415,99,483,90,484,107,416,116,VEICHLES
datasets/icdar2015/test_gts/gt_img_110.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ 1,380,71,371,74,416,4,431,STEP
2
+ 74,366,94,360,96,408,75,416,###
3
+ 4,432,101,405,105,450,6,476,CHOOSE
4
+ 3,477,76,456,80,505,4,527,YOUR
5
+ 76,453,174,424,178,471,78,502,TOPPINGS
6
+ 750,155,795,151,795,176,750,181,ORO
7
+ 794,160,846,156,846,171,794,174,###
8
+ 876,201,1016,193,1016,216,876,224,###
9
+ 876,223,1022,224,1022,248,876,247,###
10
+ 953,250,1021,251,1020,281,952,280,###
datasets/icdar2015/test_gts/gt_img_111.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 157,132,221,151,220,195,158,185,DEFY
2
+ 222,150,288,171,286,207,222,194,EMPIRE
3
+ 171,448,237,426,240,471,176,500,DEFY
4
+ 234,421,303,402,308,441,237,471,ENA E
5
+ 361,375,416,361,424,390,365,415,###
6
+ 177,272,220,276,218,304,181,306,###
7
+ 175,298,224,298,230,323,178,326,###
8
+ 1180,15,1262,3,1275,66,1193,78,###
9
+ 349,196,400,204,405,238,355,231,###
datasets/icdar2015/test_gts/gt_img_112.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 752,240,802,239,803,260,752,262,Gold
2
+ 757,75,802,83,802,98,758,101,###
3
+ 743,166,797,163,800,188,742,187,CLASS
4
+ 650,82,683,79,683,98,650,101,East
5
+ 740,47,782,48,788,71,741,68,VILLAGE
6
+ 678,78,722,81,724,99,684,100,Wing
7
+ 685,48,738,47,737,64,687,70,GOLDEN
8
+ 716,97,765,99,766,114,719,115,Level 3
9
+ 726,80,760,81,758,97,725,98,next
10
+ 670,164,741,163,741,194,675,195,GOLD
11
+ 909,87,964,72,965,101,910,114,HABA
12
+ 683,246,735,244,735,267,683,270,grab
13
+ 706,317,795,310,797,327,708,333,#GVSuntecCity
14
+ 687,337,809,330,810,345,687,352,###
15
+ 1103,96,1163,84,1165,110,1105,122,###
16
+ 1082,122,1150,111,1152,140,1084,151,###
17
+ 1113,148,1157,132,1158,155,1114,172,###
18
+ 1180,111,1243,95,1246,120,1183,135,###
19
+ 1098,21,1215,1,1225,28,1104,60,LUSH
20
+ 1226,3,1258,0,1279,12,1234,27,###
21
+ 1235,585,1279,577,1279,598,1235,605,###
22
+ 737,245,748,243,749,261,735,264,###
datasets/icdar2015/test_gts/gt_img_113.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 240,533,257,523,257,537,241,546,###
2
+ 226,271,285,272,283,287,224,286,###
3
+ 413,313,447,301,448,372,417,384,###
4
+ 465,18,531,77,525,131,467,85,###
5
+ 240,334,300,326,300,372,242,384,SALE
6
+ 125,335,173,340,176,365,130,371,SAL
7
+ 226,396,292,396,296,435,228,455,###
8
+ 217,221,282,223,283,277,221,274,SALE
9
+ 1112,70,1174,46,1174,112,1112,127,###
10
+ 95,637,142,636,138,657,92,658,sale
11
+ 231,451,293,430,293,445,231,466,###
12
+ 258,523,284,507,285,521,259,537,###
13
+ 285,506,294,502,295,513,286,518,###
14
+ 243,548,293,517,293,532,243,562,###
15
+ 64,174,90,172,88,190,63,192,###
16
+ 90,171,109,169,110,187,90,189,###
17
+ 111,170,128,169,130,185,112,187,###
18
+ 131,166,140,165,140,185,130,185,###
19
+ 562,128,600,155,593,188,555,162,###
20
+ 623,231,678,230,678,245,623,246,###
datasets/icdar2015/test_gts/gt_img_114.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 412,660,480,671,476,718,415,717,H&M
2
+ 543,247,701,236,697,272,545,281,###
3
+ 1086,497,1226,504,1231,558,1088,554,FINAL
4
+ 1237,510,1272,515,1273,561,1240,562,###
5
+ 825,550,1058,561,1066,647,832,636,SALE
6
+ 948,502,1081,510,1082,556,952,548,FINAL
7
+ 1072,563,1267,570,1276,665,1080,660,SAL
8
+ 820,501,942,503,942,548,820,542,FINAL
9
+ 31,345,64,344,62,364,28,365,###
10
+ 65,344,126,345,126,364,65,363,FARN
11
+ 294,342,318,342,318,364,294,364,###
12
+ 301,220,341,221,340,238,300,237,###
13
+ 42,208,87,210,86,227,41,226,###
14
+ 220,217,247,217,247,231,220,231,###
datasets/icdar2015/test_gts/gt_img_115.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ 102,330,152,327,163,345,106,356,SWEATS
2
+ 104,358,183,345,187,364,106,382,COMFORTABLE
3
+ 182,336,250,330,247,350,185,363,YERSATIUITT
4
+ 107,385,161,372,160,388,111,401,DEFINED
5
+ 793,60,862,58,864,74,795,75,HARA
6
+ 863,54,917,57,918,78,864,75,###
datasets/icdar2015/test_gts/gt_img_116.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 391,196,442,176,450,215,393,227,FOSSIL
2
+ 814,212,862,207,865,250,818,256,UNI
3
+ 817,251,870,253,867,303,816,308,QLO
4
+ 397,542,447,581,444,613,394,574,###
5
+ 293,235,315,232,314,254,292,257,###
6
+ 293,450,319,438,319,456,293,468,###
7
+ 4,283,17,282,14,320,2,322,###
datasets/icdar2015/test_gts/gt_img_117.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 30,71,120,108,116,154,32,116,###
2
+ 751,68,873,0,882,55,762,118,SELANGOR
3
+ 971,304,1026,306,1026,325,971,323,###
4
+ 962,332,1037,341,1038,357,963,348,###
5
+ 292,253,324,250,324,265,292,268,###
6
+ 767,32,823,3,827,26,770,55,###
7
+ 292,388,324,396,324,419,292,411,###
datasets/icdar2015/test_gts/gt_img_118.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ 922,220,1021,208,1016,235,922,245,TISSOT
2
+ 1141,196,1215,207,1212,235,1145,230,TISSOT
3
+ 723,242,852,245,852,266,723,263,###
4
+ 53,258,108,251,108,271,53,278,###
5
+ 122,247,156,242,155,261,121,266,###
6
+ 170,241,218,228,217,245,168,257,###
datasets/icdar2015/test_gts/gt_img_119.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ 10,46,178,81,183,132,15,116,Robert
2
+ 177,80,301,114,300,152,184,133,Timms
3
+ 305,110,350,117,348,134,304,126,Robert
4
+ 306,126,346,131,346,150,306,145,Timms
5
+ 90,168,154,175,152,200,87,193,###
6
+ 136,381,193,377,192,404,135,407,###
datasets/icdar2015/test_gts/gt_img_12.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 122,428,163,425,160,442,119,445,###
2
+ 1146,105,1220,92,1240,135,1166,148,###
3
+ 95,223,134,220,132,237,93,240,those
4
+ 42,248,77,240,80,277,45,285,###
5
+ 81,243,169,238,160,277,80,273,need!
6
+ 69,180,142,173,139,216,66,223,Care
7
+ 66,225,97,220,96,243,65,248,for
8
+ 80,409,107,410,108,425,81,424,Look
9
+ 332,146,407,140,408,157,333,163,###
10
+ 67,435,84,435,87,445,69,446,###
11
+ 88,429,117,429,117,445,87,445,Care
12
+ 26,313,59,315,57,330,24,329,###
13
+ 77,330,122,330,122,348,77,348,###
14
+ 146,305,177,306,180,325,150,324,###
15
+ 148,360,178,361,179,380,150,379,###
16
+ 29,359,59,360,63,378,33,377,###
datasets/icdar2015/test_gts/gt_img_120.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1094,387,1144,391,1145,410,1095,406,###
2
+ 1091,350,1143,352,1143,372,1091,370,###
3
+ 560,307,632,305,630,326,560,323,###
4
+ 771,244,877,235,876,255,773,261,###
5
+ 73,232,125,235,125,243,73,240,###
6
+ 637,30,705,1,752,15,650,77,###
7
+ 1050,352,1086,352,1087,371,1051,371,###
8
+ 43,208,156,214,153,238,47,231,SINCERE
9
+ 1054,387,1094,390,1095,406,1055,404,###
10
+ 1144,388,1190,394,1191,414,1145,408,###
11
+ 398,301,433,301,433,315,398,315,###
12
+ 518,226,550,228,550,251,518,248,###
13
+ 1155,349,1202,345,1207,383,1161,386,###
14
+ 1212,311,1256,311,1256,357,1212,357,###
15
+ 1189,100,1215,100,1215,130,1189,130,###
16
+ 0,663,144,630,148,680,4,713,###
datasets/icdar2015/test_gts/gt_img_121.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 916,128,1012,57,1018,114,923,184,ESPRIT
2
+ 344,266,408,266,407,283,344,286,###
3
+ 597,223,646,221,651,247,597,248,Enjoy
4
+ 590,248,646,244,643,280,594,283,great
5
+ 647,236,714,250,711,276,648,280,deals
6
+ 598,177,717,172,714,217,597,213,privileges
7
+ 596,283,675,275,676,310,598,310,Suntec
8
+ 590,144,722,134,718,178,591,181,exciting
9
+ 248,122,292,157,284,190,243,165,SINCERE
10
+ 674,268,715,278,720,311,677,305,City
11
+ 603,405,718,402,721,427,602,427,###
12
+ 601,365,718,365,718,376,600,382,###
13
+ 594,376,723,377,723,394,596,392,###
14
+ 20,160,52,165,50,202,17,196,###
15
+ 761,313,777,314,777,328,761,327,###
16
+ 764,432,783,432,783,447,764,447,###
17
+ 242,295,284,296,284,305,242,304,###
18
+ 604,118,627,116,627,131,604,133,###
19
+ 626,116,652,115,652,127,626,128,that
20
+ 653,113,685,115,683,130,651,127,gives
21
+ 684,115,706,116,705,132,683,131,you
datasets/icdar2015/test_gts/gt_img_122.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 976,171,1004,176,1007,217,973,219,###
2
+ 519,221,547,221,547,234,517,234,###
3
+ 1008,112,1086,96,1090,132,1008,144,SALE
4
+ 1115,26,1163,10,1173,23,1112,41,FURTHER
5
+ 1106,44,1179,23,1181,44,1107,62,REDUCTIONS
6
+ 665,159,731,163,733,185,667,181,GIORDAN
7
+ 911,191,971,179,978,242,913,238,###
8
+ 763,161,823,151,830,221,766,228,GAP
9
+ 210,268,253,267,253,307,212,309,###
10
+ 963,83,1013,71,1017,89,963,98,###
11
+ 1162,79,1246,65,1247,106,1172,114,###
12
+ 970,66,1004,56,1008,72,969,82,###
13
+ 975,220,1010,218,1005,236,978,237,OFF
14
+ 1056,165,1132,152,1146,231,1059,231,###
15
+ 1134,155,1185,152,1193,202,1147,206,###
16
+ 1140,206,1196,206,1175,228,1147,227,OFF
17
+ 1152,335,1203,339,1203,354,1152,351,###
18
+ 1205,340,1232,345,1231,357,1206,356,COM
19
+ 1234,343,1262,343,1258,362,1234,359,###
20
+ 783,462,855,492,851,548,779,519,###
21
+ 1039,150,1225,139,1225,149,1040,160,###
22
+ 911,163,975,163,975,171,911,171,###
datasets/icdar2015/test_gts/gt_img_123.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 216,128,360,173,358,207,217,173,GIORDANO
2
+ 1197,0,1277,0,1279,151,1209,146,###
3
+ 522,241,540,243,540,258,522,256,###
4
+ 658,155,671,156,670,191,657,190,###
datasets/icdar2015/test_gts/gt_img_124.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ 714,70,759,43,774,104,718,123,###
2
+ 546,162,579,140,581,173,548,188,###
3
+ 193,150,231,165,227,190,192,180,###
4
+ 84,173,160,190,156,213,85,203,###
5
+ 728,277,757,277,756,302,727,299,###
6
+ 240,220,306,222,308,238,242,236,###
7
+ 252,242,310,243,308,257,251,256,###
datasets/icdar2015/test_gts/gt_img_125.txt ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 306,307,323,308,322,323,305,323,###
2
+ 91,309,121,301,123,338,93,343,sale
3
+ 304,181,339,187,340,201,303,201,cafes
4
+ 224,205,250,203,251,218,223,218,and
5
+ 254,203,335,203,337,216,254,219,Restaurants
6
+ 255,186,300,190,300,202,252,202,shops
7
+ 232,227,267,227,267,242,226,242,food
8
+ 215,189,251,191,250,202,211,202,more
9
+ 271,223,330,225,331,239,269,244,republic
10
+ 219,244,260,247,260,257,215,259,giant
11
+ 264,239,342,243,342,260,262,264,hyperfresh
12
+ 220,262,280,270,280,283,211,285,fountain
13
+ 283,268,298,264,299,279,281,281,###
14
+ 298,265,335,264,335,280,299,282,###
15
+ 210,314,260,313,261,326,206,331,suntec
16
+ 226,287,277,286,278,300,227,302,Money
17
+ 278,283,322,281,322,300,276,300,Chang
18
+ 265,309,304,309,306,323,262,327,office
19
+ 124,304,148,302,149,332,123,335,SALE
20
+ 150,299,173,303,174,327,147,331,SALE
21
+ 766,99,837,55,840,99,777,129,COTTON
22
+ 844,48,881,32,884,81,844,97,###
23
+ 812,245,825,244,828,269,814,270,###
24
+ 1015,265,1032,267,1033,302,1018,298,###
25
+ 1052,263,1081,269,1083,308,1056,308,###
26
+ 991,143,1029,153,1030,183,989,190,new
27
+ 994,173,1033,183,1034,213,989,224,NOW
28
+ 52,0,163,61,158,91,2,16,###
29
+ 85,190,137,187,140,206,89,208,###
30
+ 90,209,127,210,127,225,90,224,###
31
+ 89,237,121,235,120,249,87,250,###
32
+ 84,249,129,247,132,267,87,268,###
33
+ 89,272,141,272,141,291,89,291,###
34
+ 90,297,130,292,131,305,90,310,###
datasets/icdar2015/test_gts/gt_img_126.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 270,169,319,199,320,247,274,224,dining
2
+ 230,154,274,168,271,219,234,203,and
3
+ 264,102,326,143,324,177,262,148,continues
4
+ 1,48,77,81,61,153,0,139,###
5
+ 80,71,236,156,229,211,78,155,shopping
6
+ 172,31,272,101,259,147,172,98,remaking
7
+ 104,0,182,1,160,82,124,75,city
8
+ 4,224,95,236,96,298,3,316,you
9
+ 94,221,152,228,145,305,106,296,for
10
+ 150,250,210,256,210,296,150,316,your
11
+ 210,256,290,266,288,304,212,319,support
12
+ 53,0,101,1,103,29,72,17,###
13
+ 1113,264,1146,260,1147,300,1113,305,###
14
+ 927,192,967,191,970,255,928,257,###
15
+ 960,286,1010,284,1014,340,964,341,###
datasets/icdar2015/test_gts/gt_img_127.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 1159,0,1268,0,1266,9,1161,19,SPECIAL
2
+ 430,22,574,104,575,153,447,96,robinsons
3
+ 452,142,514,140,516,168,450,172,SK-II
4
+ 606,156,619,157,618,179,609,178,###
5
+ 961,150,1012,145,1012,155,961,160,###
6
+ 981,155,1012,155,1012,164,981,164,###
7
+ 575,136,618,133,620,146,576,150,###
8
+ 186,154,205,155,206,178,187,177,###
9
+ 116,166,167,161,170,183,118,188,###
datasets/icdar2015/test_gts/gt_img_128.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 1135,67,1246,56,1246,74,1138,84,SINCLARE
2
+ 1023,2,1157,0,1158,29,1008,68,###
3
+ 708,120,735,122,734,134,709,132,###
datasets/icdar2015/test_gts/gt_img_129.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ 920,554,1000,550,1003,581,925,590,raffles
2
+ 1002,547,1053,548,1055,578,1001,583,City
3
+ 1148,173,1162,172,1164,197,1146,201,###
4
+ 1192,161,1219,153,1223,165,1194,172,###
5
+ 1236,183,1260,179,1263,193,1236,197,###
6
+ 1242,131,1277,119,1278,136,1246,143,###
7
+ 1192,178,1242,166,1243,177,1196,190,###
8
+ 1188,145,1241,131,1243,145,1191,159,###
9
+ 1205,191,1222,186,1222,200,1203,205,###
10
+ 0,646,84,636,87,694,2,702,###
datasets/icdar2015/test_gts/gt_img_13.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 3,159,14,159,15,172,1,175,###
2
+ 290,57,333,43,336,51,292,67,###
3
+ 805,233,1052,176,1062,211,815,268,CHEVRON
4
+ 1114,93,1153,82,1158,96,1119,107,###
5
+ 35,279,69,267,68,289,35,300,###
6
+ 367,204,409,192,410,205,368,217,Premier
7
+ 927,145,1088,103,1100,120,923,164,###
8
+ 328,192,375,177,378,197,331,211,HSBC
9
+ 284,29,368,1,375,9,289,38,###
10
+ 286,44,364,19,366,26,286,53,###
11
+ 292,71,313,65,319,72,293,81,###
12
+ 14,176,38,164,44,178,16,192,###
13
+ 18,184,58,170,69,188,20,208,###
14
+ 13,155,56,140,60,156,15,169,###
15
+ 293,95,373,65,379,95,296,120,###
16
+ 375,260,506,230,507,250,379,283,###
17
+ 412,279,475,259,475,280,419,291,###
18
+ 1060,172,1194,134,1212,181,1072,217,HOU
19
+ 1117,106,1163,94,1169,106,1112,120,###
20
+ 623,26,667,24,669,38,625,39,###
datasets/icdar2015/test_gts/gt_img_130.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ 180,51,287,130,280,181,172,102,ROBINSONS
2
+ 187,183,256,188,254,205,185,200,###
3
+ 8,186,93,193,91,222,6,215,###
4
+ 405,102,446,114,443,130,402,117,THT
5
+ 684,238,732,223,732,241,684,256,###
6
+ 820,167,864,148,862,171,817,190,###
7
+ 911,274,932,268,931,286,910,292,###
8
+ 337,161,364,180,362,207,335,188,###
9
+ 385,217,403,231,398,257,381,244,###
10
+ 384,331,403,332,401,347,382,346,###
datasets/icdar2015/test_gts/gt_img_131.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 625,213,716,212,715,237,626,243,MARKET
2
+ 717,217,780,223,781,244,716,246,PLACE
3
+ 936,358,991,353,992,374,936,376,cierge
4
+ 204,371,278,365,283,390,205,390,BRITISH
5
+ 742,343,789,330,793,354,746,358,###
6
+ 787,385,802,383,802,396,789,394,###
7
+ 785,396,803,394,806,409,788,408,###
8
+ 37,335,73,341,72,355,36,350,###
datasets/icdar2015/test_gts/gt_img_132.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 68,305,106,304,102,328,68,326,###
2
+ 374,195,481,209,482,235,374,222,SACOOR
3
+ 487,217,538,224,542,242,487,236,###
4
+ 634,236,652,237,653,252,634,248,###
5
+ 656,236,688,234,686,257,656,252,###
6
+ 688,242,731,248,732,263,688,258,###
7
+ 793,278,877,276,882,296,792,299,BRITISH
8
+ 593,231,631,233,631,247,593,245,###
9
+ 62,257,126,261,126,281,62,277,###
10
+ 1196,0,1278,1,1278,22,1193,25,###
11
+ 565,113,682,123,688,138,566,132,###
datasets/icdar2015/test_gts/gt_img_133.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 931,191,984,182,983,205,932,208,###
2
+ 978,265,1033,264,1034,281,979,281,SHOPS
3
+ 220,102,341,157,331,181,214,130,jacobs
4
+ 471,418,506,421,505,435,470,433,SALE
5
+ 452,290,608,288,609,321,458,323,BRITISH
6
+ 101,44,208,95,202,117,90,67,MARC
7
+ 611,283,738,281,738,323,609,320,INDIA
8
+ 15,4,79,34,68,60,4,33,###
9
+ 794,427,894,428,896,471,788,465,SALE
10
+ 932,268,976,265,976,281,934,281,###
11
+ 927,284,1044,278,1043,301,936,301,RESTAURANTS
12
+ 986,185,1042,187,1042,204,987,203,###
13
+ 1042,184,1062,185,1064,204,1045,203,###
14
+ 987,157,1063,157,1063,177,987,171,###
15
+ 924,166,982,155,982,170,934,175,###
16
+ 925,150,992,137,993,156,931,161,RAFFLES
17
+ 995,141,1031,136,1029,153,998,153,###
18
+ 1028,140,1076,143,1074,160,1036,155,###
19
+ 1167,442,1279,428,1277,493,1156,484,###
20
+ 284,280,315,281,314,298,283,297,###
datasets/icdar2015/test_gts/gt_img_134.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 514,390,614,396,610,432,518,426,SALE
2
+ 484,56,932,2,930,92,464,138,BRITISH
3
+ 942,0,1279,4,1276,48,944,78,###
datasets/icdar2015/test_gts/gt_img_135.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ 371,413,451,412,450,432,371,428,dont
2
+ 364,432,455,435,454,456,365,459,panic
3
+ 890,194,1012,217,1008,240,886,216,###
datasets/icdar2015/test_gts/gt_img_136.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ 50,224,112,224,114,250,46,238,place
2
+ 226,34,284,28,284,124,242,122,bright
3
+ 135,320,175,315,176,328,136,333,###
4
+ 343,345,391,338,412,442,364,448,###
5
+ 348,455,400,473,362,596,311,578,###
6
+ 306,464,341,475,315,547,281,536,###
7
+ 0,224,51,222,48,239,0,240,RKET
8
+ 213,0,263,0,264,16,229,21,###
9
+ 293,0,336,0,324,66,286,59,WALK
datasets/icdar2015/test_gts/gt_img_137.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 494,198,580,158,592,186,508,218,JACOBS
2
+ 6,388,20,382,41,415,6,439,###
3
+ 306,278,378,240,390,270,314,300,MARC
4
+ 382,242,418,224,434,252,400,264,###
5
+ 424,226,486,194,498,224,440,246,MARC
6
+ 59,385,169,334,180,357,71,405,brothers
7
+ 866,76,934,54,944,72,886,87,DIA
8
+ 732,108,758,102,765,120,734,128,###
9
+ 800,245,872,236,875,260,808,271,###
10
+ 804,272,874,266,876,285,808,290,###
11
+ 816,314,868,317,868,336,822,335,###
datasets/icdar2015/test_gts/gt_img_138.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 40,134,254,116,258,166,52,186,desigual
2
+ 433,156,447,155,452,192,438,193,###
3
+ 312,170,386,163,389,183,320,190,desigual
4
+ 726,164,845,149,864,240,749,253,###
5
+ 995,130,1058,119,1065,143,1003,150,alluti
6
+ 452,86,646,70,656,114,466,128,###
7
+ 238,289,285,285,291,316,242,322,###
8
+ 477,156,544,148,548,169,484,175,###
9
+ 480,176,562,162,566,184,486,190,###
10
+ 184,194,261,186,262,205,191,214,Further
11
+ 232,208,287,201,291,218,235,225,tions
12
+ 821,88,898,106,895,135,817,117,###
datasets/icdar2015/test_gts/gt_img_139.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 331,115,449,113,457,156,329,156,PRECIOUS
2
+ 451,114,560,107,560,157,459,157,THOTS
datasets/icdar2015/test_gts/gt_img_14.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ 268,82,335,93,332,164,267,164,the
2
+ 344,94,433,112,427,159,336,163,Future
3
+ 208,191,374,184,371,213,208,241,Communications
4
+ 370,176,420,176,416,204,373,213,###
5
+ 1,57,261,76,261,187,0,190,venting
6
+ 1,208,203,200,203,241,3,294,ntelligence.
datasets/icdar2015/test_gts/gt_img_140.txt ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 783,397,809,399,809,411,788,414,###
2
+ 821,452,836,450,835,464,823,464,###
3
+ 578,366,603,366,602,389,577,389,###
4
+ 618,434,659,436,656,451,619,453,###
5
+ 616,417,660,416,659,436,615,433,SUSHI
6
+ 228,320,291,324,286,336,229,329,###
7
+ 530,363,578,365,576,390,531,387,sushi
8
+ 785,355,807,356,805,396,785,394,the
9
+ 1180,374,1250,373,1252,398,1181,398,kimmic
10
+ 900,230,1004,162,1010,228,900,285,precious
11
+ 994,108,1145,103,1154,144,1004,230,###
12
+ 706,314,746,291,738,336,710,346,###
13
+ 729,298,811,281,813,324,737,348,place
14
+ 510,603,590,612,588,637,508,628,###
15
+ 620,364,662,366,659,419,617,417,###
16
+ 624,363,658,365,657,417,622,415,###
datasets/icdar2015/test_gts/gt_img_141.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 766,114,1125,2,1170,47,772,188,###
2
+ 882,685,904,691,905,719,879,717,###
3
+ 1037,460,1117,465,1126,530,1056,530,###
4
+ 1052,531,1091,528,1092,546,1057,546,###
5
+ 1092,525,1147,526,1146,550,1097,547,###
6
+ 707,245,755,235,760,253,710,267,Noodles
7
+ 674,221,748,198,750,225,677,246,PONTIAN
8
+ 668,259,708,250,710,265,672,276,Wanton
9
+ 961,511,1024,506,1025,526,965,527,###
10
+ 922,381,1146,357,1156,440,931,451,###
11
+ 666,150,750,112,752,165,669,202,###
12
+ 686,191,738,173,742,201,690,219,###
13
+ 958,462,1021,465,1021,486,958,482,###
14
+ 968,492,1017,494,1021,512,972,510,###
15
+ 783,220,869,191,873,206,787,236,###
16
+ 782,234,831,225,831,238,782,247,###
17
+ 932,171,986,155,991,171,937,187,###
18
+ 931,190,1060,152,1063,172,935,210,###
19
+ 776,216,875,188,885,222,779,253,###
20
+ 774,190,1095,80,1107,116,776,215,###
21
+ 929,171,1060,131,1069,174,927,209,###
22
+ 845,85,1051,0,1066,15,850,93,###
datasets/icdar2015/test_gts/gt_img_142.txt ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 812,272,841,270,842,282,815,282,###
2
+ 751,270,782,269,781,283,751,281,###
3
+ 554,236,616,234,617,285,551,283,###
4
+ 617,228,703,234,712,262,616,259,OPE
5
+ 616,258,706,259,705,286,617,284,EARLY
6
+ 506,236,529,238,529,287,506,288,###
7
+ 576,321,648,326,648,342,575,342,OPENS
8
+ 380,239,478,236,478,284,374,284,toast
9
+ 559,334,584,338,582,365,565,365,###
10
+ 588,339,618,339,612,363,588,362,###
11
+ 618,340,657,342,657,365,610,364,###
12
+ 782,245,809,242,810,259,785,257,###
13
+ 592,362,636,362,635,377,593,377,DAILY
14
+ 754,244,784,242,784,256,754,255,###
15
+ 832,244,878,242,878,258,834,257,###
16
+ 881,246,900,242,902,258,878,258,###
17
+ 807,246,833,243,833,258,811,257,###
18
+ 902,245,917,246,918,260,904,258,###
19
+ 777,258,808,257,808,270,782,269,###
20
+ 808,258,832,256,832,270,808,269,###
21
+ 748,256,779,256,779,270,752,269,###
22
+ 831,259,854,258,856,271,836,270,###
23
+ 854,259,880,258,880,272,856,272,###
24
+ 879,260,903,258,906,273,878,272,and
25
+ 781,270,812,271,813,284,782,282,###
26
+ 748,284,780,283,779,296,752,294,###
27
+ 778,284,804,283,801,295,780,295,your
28
+ 802,284,830,282,829,296,804,296,###
29
+ 830,282,880,281,880,295,832,294,important
30
+ 880,282,906,278,904,295,883,295,###
31
+ 904,283,918,279,918,295,907,294,###
32
+ 750,296,769,292,771,308,750,307,###
33
+ 772,296,790,294,789,307,771,306,###
34
+ 790,296,812,296,813,309,792,307,###
35
+ 812,297,826,297,829,308,814,308,###
36
+ 1230,249,1252,248,1254,258,1232,260,###
37
+ 1210,250,1231,249,1232,260,1211,261,###
38
+ 1199,250,1208,249,1208,260,1199,261,###
39
+ 1211,260,1234,258,1234,270,1211,272,###
40
+ 1233,261,1256,260,1256,271,1233,272,###
41
+ 1205,274,1234,270,1236,281,1207,286,###
42
+ 1233,275,1255,272,1255,281,1234,285,###
43
+ 1215,285,1232,285,1233,293,1215,294,###
44
+ 1233,284,1255,283,1255,292,1234,293,###
45
+ 1208,297,1225,294,1225,305,1208,307,###
46
+ 1226,295,1257,295,1258,306,1228,306,###
47
+ 1198,285,1215,285,1215,295,1198,295,###
48
+ 1197,261,1209,261,1210,270,1198,270,###