File size: 30,904 Bytes
5ebeb73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cb0b346
5ebeb73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Loaded as API: http://127.0.0.1:7860/ ✔\n",
      "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
      "<PcGts xmlns=\"http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15 http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15/pagecontent.xsd\">\n",
      "    <Metadata>\n",
      "        <Creator>Swedish National Archives</Creator>\n",
      "        <Created>2023-06-13, 15:45:54</Created>\n",
      "    </Metadata>\n",
      "    <Page imageFilename=\"test_api\" imageWidth=\"8992\" imageHeight=\"6144\">\n",
      "    <TextRegion id=\"region_0\" custom=\"readingOrder {index:0;}\">\n",
      "        <Coords points=\"2154,1057 2170,1112 2205,1147 2300,1181 2401,1195 2643,1162 3188,1151 3311,1159 3367,1128 3392,1077 3373,1041 3316,1017 2597,983 2323,958 2200,966 2175,997\"/>\n",
      "        <TextLine id=\"line_0_0\" custom=\"readingOrder {index:0;}\">\n",
      "            <Coords points=\"2196,1087 2206,1115 2259,1114 2313,1149 2534,1153 2714,1133 2748,1136 2810,1165 2963,1134 3309,1143 3340,1136 3351,1111 3343,1064 3230,1036 3113,1027 2901,1038 2814,997 2751,1014 2594,1027 2489,986 2430,993 2377,977 2322,980 2302,996 2242,1009 2203,1041\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Ugglebo socken.</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "    </TextRegion>\n",
      "    <TextRegion id=\"region_1\" custom=\"readingOrder {index:1;}\">\n",
      "        <Coords points=\"4161,1345 1523,1306 1351,1372 1364,5271 4223,5273 4243,3085\"/>\n",
      "        <TextLine id=\"line_1_0\" custom=\"readingOrder {index:0;}\">\n",
      "            <Coords points=\"1376,1376 1388,1499 1497,1526 1707,1480 3303,1477 3502,1519 3598,1486 4122,1462 4167,1432 4151,1366 1503,1345 1403,1347\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Uggleto socken med Amots Kapelllag, grändas¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_1\" custom=\"readingOrder {index:1;}\">\n",
      "            <Coords points=\"1365,1590 1382,1628 2618,1621 2812,1654 3009,1624 3660,1619 3949,1659 4179,1618 4199,1526 4147,1489 3903,1505 3805,1484 3505,1527 2808,1501 2397,1526 2143,1478 1402,1538\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>i norr Till Hauebe och Skogs socknar i Helsingland,</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_2\" custom=\"readingOrder {index:2;}\">\n",
      "            <Coords points=\"1387,1733 1415,1776 1499,1794 3108,1803 4146,1773 4162,1724 4147,1674 3993,1685 3851,1652 2383,1688 2045,1651 1462,1689\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>i oster till Hamrange socken, i sydost till Hille och</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_3\" custom=\"readingOrder {index:3;}\">\n",
      "            <Coords points=\"4146,1826 4066,1814 3113,1843 1494,1821 1380,1835 1362,1930 1398,1956 2247,1936 2447,2019 2597,1955 2904,1948 3152,1997 3394,1941 3995,1938 4136,1916\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Wahlbo, i söder till Ofvansjö, i sydvest och vester</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_4\" custom=\"readingOrder {index:4;}\">\n",
      "            <Coords points=\"1353,2083 1394,2115 1609,2106 1850,2150 2398,2101 4085,2100 4150,2083 4148,1977 4061,1965 3032,2006 2747,1945 2447,2015 2303,1974 1991,1996 1698,1954 1394,1967 1363,1997\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>till Svärdsjö socken i Dalarne, och i nordvest till</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_5\" custom=\"readingOrder {index:5;}\">\n",
      "            <Coords points=\"1361,2222 1396,2269 2462,2259 2651,2281 3003,2261 3303,2291 3554,2257 4058,2255 4153,2235 4159,2181 3910,2120 3668,2145 2638,2147 2445,2119 2250,2150 1700,2156 1497,2118 1376,2147\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Bollnäs socken i Helsingland, intager en större å</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_6\" custom=\"readingOrder {index:6;}\">\n",
      "            <Coords points=\"1366,2374 1396,2421 1775,2423 1947,2474 2067,2428 2183,2432 2205,2478 2264,2444 2469,2422 3013,2425 3146,2491 3503,2420 4147,2416 4183,2377 4149,2296 3239,2314 2853,2275 2649,2291 2506,2261 2179,2314 1604,2287 1400,2304\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>real än någon af Gestriklands öfrige socknar el¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_7\" custom=\"readingOrder {index:7;}\">\n",
      "            <Coords points=\"4149,2517 4142,2476 4003,2429 3799,2465 3243,2464 3056,2488 2703,2483 2295,2431 1955,2477 1408,2442 1370,2466 1365,2534 1399,2582 1810,2575 2003,2645 2245,2573 2466,2591 3453,2572 3653,2634 3816,2577 4115,2568\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>ler nära 1/4 af hela provinsen och år ett af Större</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_8\" custom=\"readingOrder {index:8;}\">\n",
      "            <Coords points=\"4154,2677 4117,2647 3846,2600 3647,2640 2691,2601 2008,2639 1403,2614 1370,2683 1401,2726 1776,2725 1952,2784 2204,2722 2903,2721 3104,2797 3349,2782 3592,2731 3999,2783 4145,2726\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>vattendrag genomskuret, med berg, sjöar och myr¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_9\" custom=\"readingOrder {index:9;}\">\n",
      "            <Coords points=\"1355,2871 1394,2898 2057,2893 2356,2941 2713,2892 4103,2896 4196,2882 4200,2832 4172,2797 3092,2789 2890,2751 2247,2787 2104,2754 1952,2767 1844,2729 1549,2766 1402,2755 1365,2792\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>landta träkter uppfylldt land, som genom sin nå¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_10\" custom=\"readingOrder {index:10;}\">\n",
      "            <Coords points=\"1326,2955 1326,3040 1395,3066 2064,3049 2684,3089 2847,3074 2991,3102 3621,3053 3899,3104 4152,3060 4190,3015 4160,2948 2534,2954 2153,2910 1771,2929 1445,2900\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>turskonhet utmärker sig framför provinsens öfrige</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_11\" custom=\"readingOrder {index:11;}\">\n",
      "            <Coords points=\"1357,3150 1364,3203 1402,3221 2659,3208 3051,3281 3254,3219 4148,3213 4196,3192 4204,3132 4148,3101 3814,3088 2952,3107 2797,3076 2635,3095 2413,3071 2200,3108 2038,3064 1855,3099 1400,3097\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>socknar. Dess största längd från hon till söder</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_12\" custom=\"readingOrder {index:12;}\">\n",
      "            <Coords points=\"3801,3315 3796,3275 3705,3237 3573,3255 3348,3240 2991,3277 2806,3228 2405,3264 1643,3232 1397,3263 1363,3328 1397,3370 1656,3389 1909,3369 2113,3433 2307,3368 3405,3381 3714,3364 3796,3340\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>år 25/6 mil och från vester till Öster 3 2/3 mil.</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_13\" custom=\"readingOrder {index:13;}\">\n",
      "            <Coords points=\"4176,3424 4152,3376 3675,3420 3252,3392 2959,3439 2699,3415 2498,3440 1950,3410 1740,3430 1543,3399 1398,3413 1365,3488 1402,3542 3254,3521 3452,3591 3663,3525 4140,3517\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Man räknar, inom denna socken öfver 300 stor</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_14\" custom=\"readingOrder {index:14;}\">\n",
      "            <Coords points=\"4208,3677 4181,3593 3999,3539 3809,3567 3543,3549 3347,3589 3003,3540 2661,3587 1937,3583 1728,3555 1397,3581 1361,3624 1369,3677 1401,3694 2654,3683 2895,3723 3096,3687 4109,3698\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>re och mindre sjöar och tjernar, hvilka tillsam¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_15\" custom=\"readingOrder {index:15;}\">\n",
      "            <Coords points=\"1356,3828 1401,3853 2235,3839 2433,3880 2659,3841 2876,3895 3139,3843 3503,3842 3700,3880 4132,3839 4159,3774 4126,3741 3752,3714 3420,3740 1987,3719 1397,3737 1361,3764\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>utans med vattendragen intaga den ansenliga area</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_16\" custom=\"readingOrder {index:16;}\">\n",
      "            <Coords points=\"2972,3931 2945,3913 2850,3906 2657,3858 2547,3892 2106,3914 1850,3890 1557,3890 1446,3864 1376,3889 1364,3945 1386,4009 1558,4071 1602,4072 1797,4008 1933,3997 2137,4029 2253,3999 2449,3998 2650,4065 2753,4021 2953,3985\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>len af 69093, i qvädratrefvar</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_17\" custom=\"readingOrder {index:17;}\">\n",
      "            <Coords points=\"3383,3930 3382,3976 3401,3995 3899,3990 4008,4024 4177,4000 4210,3978 4198,3909 4182,3896 3658,3888 3600,3834 3478,3856 3403,3892\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>På norra grån</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_18\" custom=\"readingOrder {index:18;}\">\n",
      "            <Coords points=\"4138,4116 4104,4047 3904,4009 3620,4050 3449,4018 3148,4050 2947,4014 2719,4064 1951,4011 1612,4061 1397,4056 1362,4132 1397,4177 2790,4166 2878,4181 2954,4234 3083,4173 3238,4152 3750,4165 3903,4222 4107,4162\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>sen och till hälften inom Skogs socken är Lingbo</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_19\" custom=\"readingOrder {index:19;}\">\n",
      "            <Coords points=\"4115,4231 4082,4210 3846,4224 3401,4198 3254,4164 2990,4226 2255,4186 2091,4212 1704,4180 1396,4209 1363,4327 1396,4365 1561,4318 3347,4316 3544,4347 4088,4319\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>sjön belägen, denna sammanbindes genom ett</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_20\" custom=\"readingOrder {index:20;}\">\n",
      "            <Coords points=\"4193,4413 4149,4369 3500,4356 3355,4315 3150,4350 1800,4339 1400,4382 1372,4404 1366,4477 1404,4498 1646,4469 3143,4470 3449,4510 3678,4469 4152,4468\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>mält sund med den vidsträckta, sydost derom</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_21\" custom=\"readingOrder {index:21;}\">\n",
      "            <Coords points=\"1326,4630 1707,4642 1901,4684 2138,4629 3109,4631 3266,4684 3395,4634 4150,4638 4186,4621 4196,4570 4177,4532 4046,4491 3848,4534 3547,4536 2844,4482 2542,4532 2292,4467 2108,4530 1402,4505 1364,4531 1353,4614\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>belägna sjön Ekaren. Vid Östra gränsen utbreda</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_22\" custom=\"readingOrder {index:22;}\">\n",
      "            <Coords points=\"1364,4784 1399,4829 2365,4780 2749,4837 3162,4774 3396,4839 3592,4791 4118,4791 4150,4776 4163,4674 4103,4650 3976,4683 3659,4693 3386,4630 3329,4677 3247,4694 2740,4689 2502,4625 2350,4677 2043,4650 1840,4690 1552,4645 1392,4689\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>sig Lilla och Stora Daninsjöarne, Tolfvorn samt</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_23\" custom=\"readingOrder {index:23;}\">\n",
      "            <Coords points=\"4197,4828 3987,4848 3806,4812 3639,4849 3341,4848 3104,4781 2853,4851 2364,4838 2228,4795 2041,4840 1757,4812 1392,4847 1372,4927 1400,4957 3153,4946 3445,5014 3601,4963 3776,5012 3951,4964 4172,4948\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>den till en liten del inom Hansränge liggande</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_24\" custom=\"readingOrder {index:24;}\">\n",
      "            <Coords points=\"1361,5070 1397,5112 1645,5135 2054,5098 2944,5112 3104,5146 3309,5113 4049,5114 4145,5087 4150,5029 4054,4977 3857,5005 3696,4980 3387,5006 3104,4978 2765,5004 2400,4993 2202,4953 2050,4995 1895,4999 1483,4962 1380,4985\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Vittersjön. På gränsen emot Ofvansjö bemärkas</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_1_25\" custom=\"readingOrder {index:25;}\">\n",
      "            <Coords points=\"4198,5132 3632,5162 3357,5126 3056,5145 2896,5112 2680,5166 2305,5115 1806,5151 1545,5121 1390,5158 1367,5233 1397,5266 1653,5281 2036,5261 4152,5271 4195,5254\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Hällsjön och Långsjön, hvilka till någon del lig¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "    </TextRegion>\n",
      "    <TextRegion id=\"region_2\" custom=\"readingOrder {index:2;}\">\n",
      "        <Coords points=\"7922,724 7937,736 8051,707 8101,688 8148,659 8162,625 8159,613 8148,602 8106,597 7934,593 7923,597 7909,611 7905,624\"/>\n",
      "        <TextLine id=\"line_2_0\" custom=\"readingOrder {index:0;}\">\n",
      "            <Coords points=\"7905,613 7905,710 7922,717 7929,716 7932,723 7942,727 7946,733 7982,727 8022,714 8048,716 8100,701 8108,677 8113,671 8119,639 8127,620 8117,621 8103,615 8033,610 8006,602 7974,606 7955,602 7942,609 7940,616 7923,619\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>297.</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "    </TextRegion>\n",
      "    <TextRegion id=\"region_3\" custom=\"readingOrder {index:3;}\">\n",
      "        <Coords points=\"7926,824 5441,851 5062,908 5054,4678 5110,5261 7990,5223 7998,2514\"/>\n",
      "        <TextLine id=\"line_3_0\" custom=\"readingOrder {index:0;}\">\n",
      "            <Coords points=\"7934,902 7909,860 5383,870 5110,884 5082,908 5079,974 5116,1025 5449,983 7898,966\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>ga inom sistnämnde socken, samt i vestra delen</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_1\" custom=\"readingOrder {index:1;}\">\n",
      "            <Coords points=\"7871,1070 7842,1027 7279,1016 7131,993 6899,1026 6585,1000 6302,1032 5336,1013 5104,1046 5077,1130 5111,1161 5288,1190 5726,1138 6996,1121 7230,1133 7413,1180 7844,1132\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>af Ugglevo eller den så kallade Finnbyggden,</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_2\" custom=\"readingOrder {index:2;}\">\n",
      "            <Coords points=\"5067,1240 5078,1330 5122,1345 5395,1295 7111,1286 7351,1322 7553,1287 7898,1284 7929,1232 7899,1180 7090,1157 6692,1189 6400,1131 6109,1188 5900,1176 5727,1132 5515,1194 5124,1178\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Sjöarne Quidsjön, Holmsjön och Macksjon såsom</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_3\" custom=\"readingOrder {index:3;}\">\n",
      "            <Coords points=\"5072,1459 7920,1440 7942,1401 7897,1346 7683,1319 6062,1340 5839,1299 5679,1337 5387,1312 5107,1350 5078,1376\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>de största. Från nordvestra hörnet, der rå skillna¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_4\" custom=\"readingOrder {index:4;}\">\n",
      "            <Coords points=\"7885,1559 7852,1499 7620,1467 7163,1487 6896,1460 6342,1506 5123,1514 5079,1578 5114,1632 6255,1614 6458,1638 6686,1613 7866,1599\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>derna mellan denna samt Hanebo och Ballnäs</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_5\" custom=\"readingOrder {index:5;}\">\n",
      "            <Coords points=\"7919,1677 7898,1622 7577,1655 7223,1654 7015,1618 6735,1653 6338,1636 6037,1667 5337,1647 5113,1662 5076,1747 5112,1783 6179,1779 6399,1810 6676,1763 7888,1761\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>socknar sammanträffa med hvarandra och till</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_6\" custom=\"readingOrder {index:6;}\">\n",
      "            <Coords points=\"7915,1800 7898,1780 7564,1795 7399,1775 7097,1808 6173,1811 6012,1782 5096,1817 5078,1905 5111,1943 5229,1948 5341,1990 5574,1939 6276,1918 7854,1936 7904,1911\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>det sydvestra hörnet, der Wahlbo och Hille tillstöta</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_7\" custom=\"readingOrder {index:7;}\">\n",
      "            <Coords points=\"7928,2016 7880,1975 7630,1951 5819,1981 5558,1958 5389,1988 5117,1984 5081,2074 5115,2120 5383,2092 6047,2092 6295,2147 6627,2069 6789,2135 7052,2134 7338,2076 7898,2097\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>genomskäres socknen af dess betydligaste vattendrag,</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_8\" custom=\"readingOrder {index:8;}\">\n",
      "            <Coords points=\"7863,2134 7837,2114 7635,2142 6862,2147 6623,2079 6349,2146 5175,2117 5095,2137 5077,2191 5120,2260 6183,2241 6395,2270 6659,2238 7076,2266 7817,2242 7849,2221\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>hvilket under namn af Fansan upprinner uti</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_9\" custom=\"readingOrder {index:9;}\">\n",
      "            <Coords points=\"5085,2414 5115,2458 5282,2413 5895,2396 6124,2416 6288,2390 7346,2397 7510,2431 7853,2390 7894,2347 7856,2269 7683,2247 7525,2281 7286,2247 7032,2306 6791,2294 6618,2253 5440,2307 5225,2243 5103,2293\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Grannäs sjön i Alfta socken inom Helsingland,</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_10\" custom=\"readingOrder {index:10;}\">\n",
      "            <Coords points=\"5082,2576 5125,2602 5241,2567 5470,2571 5626,2635 5794,2564 6313,2544 7910,2549 7933,2493 7899,2437 7398,2402 7120,2443 6837,2425 6563,2451 6282,2394 6064,2444 5561,2421 5287,2467 5119,2465 5090,2487\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>gar vidare genom Bollnäs socken, samt sedan det</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_11\" custom=\"readingOrder {index:11;}\">\n",
      "            <Coords points=\"5092,2691 5117,2728 6344,2705 6559,2773 6847,2715 7119,2709 7341,2749 7515,2710 7683,2763 7932,2716 7962,2690 7965,2629 7918,2584 7735,2571 7503,2607 7245,2556 7007,2602 6692,2606 6448,2546 6246,2597 5788,2575 5615,2622 5401,2583 5116,2617\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>derstädes utbredt sig i Fanssjöarne intränger i Uggle¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_12\" custom=\"readingOrder {index:12;}\">\n",
      "            <Coords points=\"5088,2854 5284,2949 5565,2865 5688,2877 5837,2935 6063,2873 6291,2929 6398,2882 6544,2865 6779,2873 7007,2930 7119,2895 7900,2869 7937,2851 7944,2798 7899,2764 7512,2712 7170,2762 6512,2768 6212,2710 6026,2753 5853,2718 5631,2755 5222,2734 5106,2762\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>bo, efter att hafva vid gränsen deraf, upptagit den</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_13\" custom=\"readingOrder {index:13;}\">\n",
      "            <Coords points=\"7948,2959 7937,2913 7674,2920 7517,2883 7344,2923 6897,2925 6712,2894 6522,2929 6178,2906 5961,2937 5543,2886 5341,2936 5118,2915 5085,2987 5116,3066 5350,3035 5736,3083 6057,3027 7039,3026 7289,3043 7454,3091 7909,3019\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>från Nybosjon i Bollnäs, kommande Rymje el¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_14\" custom=\"readingOrder {index:14;}\">\n",
      "            <Coords points=\"5084,3130 5088,3191 5120,3212 5820,3183 7463,3178 7676,3258 7953,3192 7954,3071 7784,3057 7469,3087 6514,3056 6263,3083 6072,3045 5850,3091 5463,3058 5111,3084\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>ler Svartån, Så snart det inkommit i Uggle¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_15\" custom=\"readingOrder {index:15;}\">\n",
      "            <Coords points=\"5086,3308 5120,3364 6291,3341 6510,3383 6618,3350 6980,3341 7236,3372 7416,3345 7901,3341 7952,3242 7515,3242 7291,3191 7091,3247 6671,3250 6347,3206 6115,3233 5833,3191 5691,3222 5122,3223\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>bo socken bildar det några smärre tjernar, samt</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_16\" custom=\"readingOrder {index:16;}\">\n",
      "            <Coords points=\"7931,3412 7899,3366 7244,3399 6894,3360 6509,3388 6182,3370 5905,3404 5222,3373 5107,3391 5081,3508 5122,3563 5180,3527 5336,3511 5538,3524 5623,3563 5786,3511 6129,3506 6509,3565 6623,3517 7010,3512 7129,3555 7341,3501 7459,3507 7574,3555 7898,3493\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>flyter derefter med obetydliga krökningar i sydost¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_17\" custom=\"readingOrder {index:17;}\">\n",
      "            <Coords points=\"7945,3622 7902,3546 7587,3539 7460,3502 7232,3546 6467,3567 6175,3524 5796,3578 5522,3539 5286,3554 5223,3522 5115,3562 5082,3649 5121,3733 5346,3676 5623,3698 6064,3679 6183,3711 6337,3671 6572,3689 6675,3729 6789,3675 6952,3652 7349,3687 7576,3672 7740,3704 7915,3665\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>lig riktning, upptager ofvanför Amots by, ett, från</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_18\" custom=\"readingOrder {index:18;}\">\n",
      "            <Coords points=\"7939,3742 7905,3703 7797,3689 7174,3708 6897,3673 6736,3711 6343,3683 6173,3714 5778,3722 5505,3686 5123,3733 5090,3806 5116,3843 5350,3841 5505,3882 5679,3842 6512,3816 6974,3863 7899,3814 7930,3797\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>de vid gränsen emot Bollnäs belägne tjernar kom¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_19\" custom=\"readingOrder {index:19;}\">\n",
      "            <Coords points=\"7881,3892 7851,3843 7637,3870 5119,3890 5080,3971 5115,4008 6343,3977 6574,4039 6810,3984 7843,3970\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>mande mindre vattendrag, samt vidare vid</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_20\" custom=\"readingOrder {index:20;}\">\n",
      "            <Coords points=\"5109,4130 5179,4151 6633,4137 6850,4201 7053,4136 7886,4122 7929,4073 7900,4018 6933,4016 6446,4042 6119,4006 5509,4002 5142,4036 5114,4058\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Amots bruk Kölsjö än, som lopande söder om</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_21\" custom=\"readingOrder {index:21;}\">\n",
      "            <Coords points=\"7904,4191 7475,4164 7226,4186 7008,4156 6853,4194 6506,4169 6276,4198 5835,4163 5450,4201 5281,4163 5117,4188 5093,4298 5124,4320 7788,4289 7889,4271\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Fans- och Svartåarne har sin kalla i den inom</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_22\" custom=\"readingOrder {index:22;}\">\n",
      "            <Coords points=\"7921,4358 7887,4330 7671,4336 7511,4301 7126,4348 6792,4315 6517,4359 6240,4309 5962,4348 5234,4326 5115,4350 5097,4415 5120,4467 5989,4453 6239,4484 6571,4450 6846,4475 7843,4451 7911,4424\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>Ballnäs socken belägna Kölsjön. Förenade</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_23\" custom=\"readingOrder {index:23;}\">\n",
      "            <Coords points=\"5136,4640 5174,4675 5237,4641 5397,4624 7060,4608 7406,4657 7619,4608 7905,4598 7939,4519 7906,4481 6605,4506 5284,4469 5152,4520\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>fortsätta nu dessa vatten under hamn af Amots</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_24\" custom=\"readingOrder {index:24;}\">\n",
      "            <Coords points=\"7959,4659 7922,4613 7736,4603 7516,4657 7006,4612 6749,4668 6479,4609 6226,4666 5500,4648 5126,4703 5106,4750 5160,4787 5889,4802 6291,4769 6505,4820 6734,4768 7053,4761 7294,4827 7522,4763 7844,4799 7955,4751\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>än sitt lopp genom Påls jon och Wallsjön till By¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_25\" custom=\"readingOrder {index:25;}\">\n",
      "            <Coords points=\"7972,4853 7952,4823 7633,4779 7245,4819 6847,4787 6564,4831 5667,4805 5505,4840 5178,4845 5147,4922 5170,4970 5504,4920 6632,4960 7111,4928 7961,4912\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>sjön. Sistnämnde sjö upphemtar dessutom norr</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_26\" custom=\"readingOrder {index:26;}\">\n",
      "            <Coords points=\"5125,5078 5170,5121 5558,5094 6176,5086 6416,5114 6720,5091 6900,5143 7019,5130 7125,5154 7340,5070 7886,5070 7947,5020 7903,4966 5995,4995 5776,4955 5570,4987 5174,4992 5131,5019\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>ifrån Moan, som upprinner på gränsen emel¬</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "        <TextLine id=\"line_3_27\" custom=\"readingOrder {index:27;}\">\n",
      "            <Coords points=\"7953,5184 7924,5144 7735,5095 7508,5116 7342,5083 7185,5141 7006,5148 6685,5115 6398,5144 6182,5110 5728,5145 5548,5113 5396,5149 5151,5147 5110,5200 5118,5274 5185,5274 5187,5249 7870,5239 7934,5227\"/>\n",
      "            <TextEquiv>\n",
      "                <Unicode>lan Skogs och Hauebo socknar, samt emottager</Unicode>\n",
      "            </TextEquiv>\n",
      "        </TextLine>\n",
      "    </TextRegion>\n",
      "    </Page>\n",
      "</PcGts>\n",
      "\n"
     ]
    }
   ],
   "source": [
    "from gradio_client import Client\n",
    "\n",
    "client = Client(\"http://127.0.0.1:7860/\")\n",
    "job = client.submit(\n",
    "    \"./test.jpg\",  # str (filepath or URL to image) in 'Image to run HTR-pipeline on' Image component\n",
    "    \"test_api\",  # str  in 'parameter_22' Textbox component\n",
    "    api_name=\"/predict\",\n",
    ")\n",
    "\n",
    "print(job.result())\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "venv",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.9"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}