-
Notifications
You must be signed in to change notification settings - Fork 4
/
handwritten_bb.txt
392 lines (378 loc) · 16.7 KB
/
handwritten_bb.txt
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
# (x1, y1)----( )
# |------------|
# |------------|
# ( )----(x4, y4)
# FORMAT! (ratio)
# [
#
# [x1, y1, x4, y4], # bb-0
# [x1, y1, x4, y4], # bb-1
# [x1, y1, x4, y4], # bb-2
#
# ]
# all bb outputs
{'character_probs': [[
[[[-3.958126 -5.831553 0.75141907 ... -3.6111343 -7.683274
9.373198 ]
[-1.954771 -5.6848454 -1.3343645 ... -2.5424407 -6.5689855
9.99583 ]
[ 0.36987284 -4.683539 -1.0141093 ... -1.852143 -5.817577
10.111458 ]
...
[ 1.4193599 -4.588153 -2.476681 ... -1.0024637 -3.4311728
4.8007374 ]
[-1.2357217 -4.5037622 -2.1561549 ... -0.2763122 -4.562061
4.5596976 ]
[-4.3232126 -3.7867866 -0.6097061 ... 1.0894268 -6.14382
3.41803 ]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.3170033 -7.2078924 0.5435997 ... -3.0146089 -7.4787664
11.746836 ]
[-2.2836938 -6.0285664 -1.0162678 ... -2.052215 -5.780824
12.71345 ]
[ 0.24498339 -4.7519083 -0.45129874 ... -1.6165001 -4.6284037
13.111165 ]
...
[-0.26578033 -5.281228 -1.6691016 ... -2.2273238 -4.833933
12.670833 ]
[-2.457951 -5.33829 -1.3050795 ... -1.4638953 -6.278285
12.023782 ]
[-3.4689941 -5.0047374 0.21632084 ... -0.4396336 -8.4044895
10.812999 ]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.1586604 -7.394514 0.59563917 ... -3.0895143 -7.5648894
11.734213 ]
[-2.1167166 -6.194551 -0.9996073 ... -2.1366243 -5.851403
12.702841 ]
[ 0.41796058 -4.920494 -0.46536997 ... -1.6897826 -4.6908927
13.083852 ]
...
[-0.5241365 -5.919724 -1.54388 ... -1.9158659 -4.7593656
12.532591 ]
[-2.7763662 -5.877102 -1.3116012 ... -1.0917251 -6.183818
11.872207 ]
[-4.1385593 -5.386643 -0.12545815 ... -0.2672264 -8.371409
11.342286 ]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.4619327 -6.9547095 0.798643 ... -2.9914956 -7.325677
11.669068 ]
[-2.4797437 -5.772363 -0.73349583 ... -2.0486035 -5.6520305
12.66201 ]
[ 0.03418186 -4.45899 -0.0732502 ... -1.667896 -4.5757303
13.060285 ]
...
[-0.16967168 -6.185518 -2.1542716 ... -2.176614 -4.941508
13.935702 ]
[-2.3420079 -6.111189 -1.8805197 ... -1.4973068 -6.2794704
13.452012 ]
[-3.1526234 -5.7011533 -0.52660906 ... -0.7329833 -8.40246
12.972487 ]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.429157 -7.0043564 0.6017379 ... -2.9956822 -7.2078414
11.500165 ]
[-2.4388723 -5.8585854 -0.93872076 ... -2.0231283 -5.516438
12.517439 ]
[ 0.08983368 -4.570348 -0.285507 ... -1.5849147 -4.404309
12.934027 ]
...
[-0.04131621 -6.219092 -2.6388302 ... -1.8530629 -4.859975
13.207858 ]
[-2.2787342 -6.277168 -2.3754632 ... -1.1457062 -6.3536057
12.877822 ]
[-3.8456297 -5.955005 -1.2035213 ... -0.5689705 -8.79497
13.209641 ]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.4799576e+00 -7.0876942e+00 8.2680809e-01 ... -3.0648239e+00
-7.3472490e+00 1.1494050e+01]
[-2.4983306e+00 -5.9200921e+00 -7.0606434e-01 ... -2.1065915e+00
-5.6537223e+00 1.2502091e+01]
[ 5.9263073e-03 -4.6157999e+00 -8.6297020e-03 ... -1.6807220e+00
-4.5980358e+00 1.2958920e+01]
...
[ 2.7832922e-02 -6.3077378e+00 -2.7022147e+00 ... -1.6467173e+00
-4.8600326e+00 1.3438092e+01]
[-2.2118132e+00 -6.2789130e+00 -2.3716662e+00 ... -1.0090239e+00
-6.3002310e+00 1.3030206e+01]
[-3.2302268e+00 -5.9326134e+00 -1.0207260e+00 ... -2.9181045e-01
-8.6642380e+00 1.2883626e+01]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.3620114 -7.006595 0.8887237 ... -3.169999 -7.53564
11.892507 ]
[-2.3745139 -5.8651247 -0.6505321 ... -2.2218113 -5.8742175
12.92203 ]
[ 0.15671001 -4.585187 -0.01720538 ... -1.8085363 -4.808797
13.319882 ]
...
[-0.0928508 -5.998618 -2.2384276 ... -2.3214645 -4.6571407
12.876729 ]
[-2.2789009 -6.0936804 -2.0008595 ... -1.6486657 -6.1890774
12.51755 ]
[-3.6735091 -5.713568 -0.84752685 ... -0.8600858 -8.646482
12.273009 ]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.2362056e+00 -7.3591747e+00 9.5918584e-01 ... -3.2979748e+00
-7.6945210e+00 1.2172936e+01]
[-2.2671380e+00 -6.2073350e+00 -5.9460700e-01 ... -2.3365829e+00
-6.0458317e+00 1.3204946e+01]
[ 2.6394132e-01 -4.9375687e+00 1.2552716e-02 ... -1.9421067e+00
-5.0010037e+00 1.3575044e+01]
...
[-1.1315888e-01 -5.6071229e+00 -2.0933948e+00 ... -2.0287769e+00
-4.4023371e+00 1.2371596e+01]
[-2.3679035e+00 -5.6375136e+00 -1.7581561e+00 ... -1.4073074e+00
-5.6917524e+00 1.1808979e+01]
[-3.4831007e+00 -5.2934256e+00 -5.8432150e-01 ... -4.6167868e-01
-7.9147105e+00 1.0926536e+01]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.451475 -7.1254363 0.90934247 ... -3.1674106 -7.443016
11.667567 ]
[-2.4689186 -5.964396 -0.6159365 ... -2.2056787 -5.767794
12.676853 ]
[ 0.04022753 -4.673909 0.07237623 ... -1.78093 -4.739384
13.128383 ]
...
[ 0.02778053 -5.8992424 -2.0906231 ... -2.2029612 -4.3593383
12.983241 ]
[-2.185791 -6.0102606 -1.8362857 ... -1.55113 -5.82836
12.616681 ]
[-3.4233122 -5.7132983 -0.68390614 ... -0.6978417 -8.29114
12.517801 ]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.418116 -7.1618376 0.9074051 ... -3.0617616 -7.4490914
11.6289835 ]
[-2.4135828 -5.9884324 -0.6209549 ... -2.0931237 -5.75036
12.599967 ]
[ 0.10451612 -4.7074933 0.04750762 ... -1.6915648 -4.6906743
13.02 ]
...
[-0.28460652 -5.9647317 -2.199853 ... -1.9096258 -4.5603037
12.965575 ]
[-2.5233698 -5.979774 -1.9417206 ... -1.2942042 -5.993469
12.614881 ]
[-3.8933003 -5.513978 -0.7313055 ... -0.5631892 -8.37621
12.404734 ]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.3801174 -7.3133125 1.1090739 ... -3.0896409 -7.681409
12.31079 ]
[-2.4099057 -6.1923027 -0.4606203 ... -2.1893816 -6.023972
13.359689 ]
[ 0.06852376 -4.915031 0.17026946 ... -1.8069932 -5.0114393
13.762242 ]
...
[ 0.18778205 -4.214784 -1.2333119 ... -2.337837 -4.458882
11.201526 ]
[-1.9570484 -4.0653186 -0.56057626 ... -1.4957926 -5.6165924
10.014327 ]
[-3.8636768 -2.869741 1.6702446 ... 0.21790528 -6.709019
6.1730485 ]]]
<NDArray 1x160x81 @cpu(0)>,
[[[-5.2529817 -7.1313186 0.20051804 ... -2.780432 -7.256614
11.448798 ]
[-2.1489155 -5.9693985 -1.3828735 ... -1.8476369 -5.5367503
12.375612 ]
[ 0.41460025 -4.7177715 -0.84250295 ... -1.4332738 -4.33946
12.740445 ]
...
[ 0.39191493 -5.3176613 -1.9901762 ... -1.8772516 -4.016548
12.522791 ]
[-1.7767172 -5.374791 -1.7674328 ... -1.0593326 -5.4132104
12.217358 ]
[-3.0196888 -4.977866 -0.5385067 ... -0.06095752 -7.5539417
11.947306 ]]]
<NDArray 1x160x81 @cpu(0)>]],
'croped_image': None,
'decoded': (['Sontence DatabasOa0zOT2 ',
'TigiogisilngTingigniatiaigtitgittiTtan.Titinim"TTioTiianin',
'inionilinionicicinioinicivivioiaioinvio',
'There suppost costs are a bing thain on Americain',
"doller reserves. Dr. Adenauer's anoer in the",
'over-and-fpor-all coasth offr of ss7uilion. Preicded',
"Menoncdy's rejiction of it in a paingeod Whew to the",
'Wnt Ceman Coovermenty, Ut wll now have to pay',
'mere - and inceare barctions to do s - or',
'sun the dvious risths in upretling the new',
'American administration.',
'IFazae'],
['Sontence DatabasOa0zOT2 ',
'TigiogisingTingignitaigtigitiTtan.Titinim"TTiioTiianin',
'inionilininionicicinioinicivivioiaioinvio',
'There support costs are a bing thain on Americain',
"doller reserves. Dr. Adenauer's anoer in the",
'over-and-por-all casth offr of ss7uilion. Preicded',
"Menonedy's rejiction of it in a paingeod Whew to the",
'Wnt Ceman Covermenty, Ut wll now have to pay',
'mere - and inceare barctions to do s - or',
'sun the dvious risths in upretling the new',
'American administration.',
'IFazae'],
['S e n t e n c e D a t a',
'T i g i n g i n g s i n g i n g i g n o r a t i n g l',
'o p i n i o n i l l i n i o n i c i c',
'T h e r e s u p p o r t c o s t s a r e a',
'd o l l a r r e s e r v e s . D r . A r',
'o v e r - a n d - f o r - a l l c o a s t s o f f',
"M e n a r c h y ' s r e j e c t i o n o f i t",
'B u t G e r m a n G o v e r n m e n t y ,',
'm o r e - a n d i n c r e a s e s a n',
's u n t h e d e v i o u s r i s k s',
'American administration.',
'I F a z a r e']),
'line_images_array': [[array([[244, 246, 247, ..., 242, 240, 236],
[241, 244, 243, ..., 246, 243, 241],
[243, 244, 241, ..., 237, 238, 243],
...,
[248, 247, 243, ..., 235, 230, 234],
[249, 250, 245, ..., 233, 230, 234],
[250, 248, 243, ..., 232, 232, 236]], dtype=uint8),
array([[248, 250, 245, ..., 241, 245, 239],
[248, 250, 247, ..., 237, 239, 240],
[249, 248, 239, ..., 237, 242, 240],
...,
[242, 238, 238, ..., 221, 219, 209],
[241, 240, 239, ..., 224, 221, 216],
[238, 239, 239, ..., 223, 227, 223]], dtype=uint8),
array([[236, 242, 243, ..., 226, 227, 225],
[244, 243, 242, ..., 234, 233, 232],
[239, 244, 237, ..., 230, 232, 235],
...,
[247, 246, 245, ..., 243, 247, 247],
[246, 250, 248, ..., 244, 246, 245],
[249, 249, 248, ..., 246, 246, 247]], dtype=uint8),
array([[250, 248, 248, ..., 243, 242, 241],
[250, 249, 247, ..., 241, 241, 241],
[247, 249, 249, ..., 244, 246, 245],
...,
[245, 244, 240, ..., 243, 243, 242],
[245, 243, 242, ..., 243, 245, 240],
[239, 237, 241, ..., 243, 242, 238]], dtype=uint8),
array([[238, 240, 239, ..., 248, 250, 249],
[240, 243, 241, ..., 250, 248, 246],
[246, 246, 245, ..., 249, 245, 244],
...,
[246, 249, 247, ..., 243, 243, 244],
[249, 250, 248, ..., 243, 245, 243],
[245, 243, 243, ..., 243, 248, 249]], dtype=uint8),
array([[246, 241, 241, ..., 245, 245, 246],
[243, 249, 248, ..., 247, 246, 250],
[248, 247, 247, ..., 249, 247, 250],
...,
[235, 236, 234, ..., 241, 236, 239],
[239, 235, 235, ..., 241, 237, 237],
[242, 238, 239, ..., 236, 233, 235]], dtype=uint8),
array([[243, 244, 242, ..., 239, 238, 241],
[247, 245, 241, ..., 241, 238, 239],
[240, 239, 242, ..., 246, 245, 245],
...,
[236, 244, 242, ..., 242, 238, 238],
[236, 241, 240, ..., 243, 242, 238],
[241, 239, 242, ..., 240, 241, 241]], dtype=uint8),
array([[229, 237, 233, ..., 242, 242, 240],
[234, 237, 238, ..., 241, 241, 241],
[236, 236, 241, ..., 243, 241, 240],
...,
[246, 249, 249, ..., 245, 242, 248],
[245, 245, 249, ..., 246, 249, 247],
[244, 246, 245, ..., 250, 247, 248]], dtype=uint8),
array([[242, 236, 244, ..., 244, 244, 245],
[246, 237, 236, ..., 245, 242, 242],
[249, 242, 243, ..., 244, 244, 242],
...,
[249, 245, 245, ..., 248, 250, 250],
[250, 248, 245, ..., 250, 250, 250],
[249, 242, 242, ..., 248, 249, 248]], dtype=uint8),
array([[248, 250, 248, ..., 248, 250, 247],
[248, 250, 245, ..., 244, 244, 249],
[250, 246, 246, ..., 250, 246, 249],
...,
[236, 235, 235, ..., 245, 243, 246],
[227, 230, 234, ..., 240, 249, 248],
[237, 235, 240, ..., 247, 246, 249]], dtype=uint8),
array([[238, 240, 237, ..., 242, 241, 243],
[238, 240, 238, ..., 241, 241, 241],
[247, 244, 240, ..., 244, 243, 246],
...,
[243, 239, 239, ..., 240, 237, 235],
[241, 235, 238, ..., 238, 235, 235],
[241, 237, 237, ..., 236, 238, 236]], dtype=uint8),
array([[240, 239, 240, ..., 35, 34, 35],
[237, 239, 237, ..., 126, 120, 127],
[242, 240, 236, ..., 219, 215, 214],
...,
[235, 231, 237, ..., 245, 245, 242],
[230, 236, 242, ..., 241, 241, 244],
[239, 239, 238, ..., 237, 240, 238]], dtype=uint8)]],
'predicted_bb': array([[ 0.48730165, 0.5541909 , 0.14720082, 0.05411577],
[ 0.14379492, 0.603772 , 0.14684 , 0.03608191],
[ 0.12136327, 0.06144662, 0.27771842, 0.02208589],
[ 0.51067877, 0.40540916, 0.11298621, 0.05644917],
[ 0.5520792 , 0.35677665, 0.16235638, 0.03223139],
[ 0.38540453, 0.3029806 , 0.16526479, 0.03431994],
[ 0.4657908 , 0.5050523 , 0.10439003, 0.03122485],
[ 0.13734585, 0.31595647, 0.09149444, 0.0324139 ],
[ 0.13845602, 0.40307915, 0.14319724, 0.0572989 ],
[ 0.308017 , 0.45566866, 0.15517873, 0.03397709],
[ 0.25936157, 0.10036022, 0.44301122, 0.09435662],
[ 0.6465152 , 0.25625145, 0.1474688 , 0.03001523],
[ 0.0995253 , 0.13426507, 0.23979148, 0.05667064],
[ 0.26339465, 0.4058532 , 0.11725968, 0.05163574],
[ 0.2636339 , 0.55356354, 0.12702417, 0.03496575],
[ 0.14032751, 0.49821365, 0.08352837, 0.0205797 ],
[ 0.14814198, 0.5350983 , 0.08677608, 0.01574862],
[ 0.47882366, 0.35291636, 0.05009806, 0.05372322],
[ 0.6645785 , 0.53486717, 0.03581858, 0.0184207 ],
[ 0.73418605, 0.46751827, 0.06465185, 0.04465252],
[ 0.3911382 , 0.55753565, 0.06491184, 0.03293741],
[ 0.7008194 , 0.3534352 , 0.11733711, 0.0333069 ],
[ 0.47853738, 0.2584214 , 0.0321973 , 0.04421288],
[ 0.37210453, 0.3630515 , 0.05156827, 0.02905351],
[ 0.5324945 , 0.32506046, 0.10994923, 0.01664925],
[ 0.5997464 , 0.50185406, 0.03441906, 0.02375388],
[ 0.13437918, 0.7755304 , 0.0696376 , 0.0150739 ],
[ 0.6893141 , 0.31562805, 0.02591395, 0.01520175],
[ 0.1473409 , 0.35923237, 0.23293829, 0.04167032],
[ 0.13761692, 0.25177523, 0.08848643, 0.02530664],
[ 0.34956795, 0.31365085, 0.03889215, 0.0277819 ],
[ 0.70273685, 0.41815853, 0.02224231, 0.02469456],
[ 0.6509918 , 0.52248555, 0.02451849, 0.01489425],
[ 0.32284462, 0.33882007, 0.01604033, 0.01115745],
[ 0.33443248, 0.27074948, 0.04779446, 0.02260494],
[ 0.48726362, 0.44445014, 0.02516294, 0.01433909],
[ 0.657194 , 0.41037485, 0.03405511, 0.02352613],
[ 0.6507948 , 0.5566876 , 0.06218517, 0.03182733],
[ 0.22955331, 0.55858624, 0.04913813, 0.03237915],
[ 0.7537724 , 0.06435271, 0.1427201 , 0.02148157],
[ 0.34813932, 0.5164538 , 0.10419065, 0.0228405 ],
[ 0.41046214, 0.40743974, 0.02687359, 0.0344314 ],
[ 0.2745359 , 0.5081751 , 0.05336052, 0.03443551],
[ 0.6748045 , 0.5281253 , 0.02223992, 0.01005089],
[ 0.72159374, 0.41841307, 0.0524255 , 0.02934957],
[ 0.7347726 , 0.5296105 , 0.03986704, 0.01119971],
[ 0.4868929 , 0.5629191 , 0.03169176, 0.02530718],
[ 0.14185782, 0.4558531 , 0.06149128, 0.02616286],
[ 0.19717167, 0.46505955, 0.09281652, 0.02384907],
[ 0.1266902 , 0.7944066 , 0.07630792, 0.01521242],
[ 0.54802746, 0.25610244, 0.0635134 , 0.01825076],
[ 0.438193 , 0.6265253 , 0.01493222, 0.00828302],
[ 0.64720005, 0.31978446, 0.02653968, 0.0157963 ],
[ 0.16291657, 0.55783534, 0.04917684, 0.01820505],
[ 0.28705704, 0.33136985, 0.03223133, 0.01490331],
[ 0.7369012 , 0.51542795, 0.03018785, 0.01044846],
[ 0.6560432 , 0.460889 , 0.04141939, 0.03083539],
[ 0.43743908, 0.2658035 , 0.02538157, 0.01507896],
[ 0.34145907, 0.31887132, 0.01340258, 0.01127881],
[ 0.41163427, 0.27109393, 0.03008795, 0.01114225],
[ 0.5668546 , 0.51326275, 0.02329028, 0.02826059],
[-0.10543156, 0.89421725, 1.1413212 , 0.07697964],
[ 0.7192848 , 0.5569069 , 0.05584013, 0.01328886],
[ 0.48149922, 0.4598718 , 0.05093226, 0.02105814],
[ 0.22963619, 0.49787787, 0.07220161, 0.02155176],
[ 0.6818624 , 0.37486377, 0.01317406, 0.010364 ],
[ 0.3315037 , 0.3507814 , 0.01535046, 0.0138852 ],
[ 0.15334523, 0.5745517 , 0.058759 , 0.0158906 ],
[ 0.7083977 , 0.45936352, 0.02070606, 0.02210695]],
dtype=float32),
'predicted_text_area': (0.06307346343994141,
0.1887394689023495,
0.901689783334732,
0.504880566895008)}
Process finished with exit code 0