You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ocrd_cis/ocrd-tool.json
+23-5Lines changed: 23 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -191,8 +191,20 @@
191
191
"output_file_grp": [
192
192
"OCR-D-SEG-LINE"
193
193
],
194
-
"description": "Resegment lines with ocropy (by shrinking annotated polygons)",
194
+
"description": "Resegment text lines",
195
195
"parameters": {
196
+
"level-of-operation": {
197
+
"type": "string",
198
+
"enum": ["page", "region"],
199
+
"description": "PAGE XML hierarchy level to segment textlines in ('region' abides by existing text region boundaries, 'page' optimises lines in the whole page once",
200
+
"default": "page"
201
+
},
202
+
"method": {
203
+
"type": "string",
204
+
"enum": ["lineest", "baseline", "ccomps"],
205
+
"description": "source for new line polygon candidates ('lineest' for line estimation, i.e. how Ocropy would have segmented text lines; 'baseline' tries to re-polygonize from the baseline annotation; 'ccomps' avoids crossing connected components by majority rule)",
206
+
"default": "lineest"
207
+
},
196
208
"dpi": {
197
209
"type": "number",
198
210
"format": "float",
@@ -202,13 +214,13 @@
202
214
"min_fraction": {
203
215
"type": "number",
204
216
"format": "float",
205
-
"description": "share of foreground pixels that must be retained by the largest label",
206
-
"default": 0.8
217
+
"description": "share of foreground pixels that must be retained by the output polygons",
218
+
"default": 0.75
207
219
},
208
220
"extend_margins": {
209
221
"type": "number",
210
222
"format": "integer",
211
-
"description": "number of pixels to extend the input polygons horizontally and vertically before intersecting",
223
+
"description": "number of pixels to extend the input polygons in all directions",
212
224
"default": 3
213
225
}
214
226
}
@@ -238,9 +250,15 @@
238
250
"range": {
239
251
"type": "number",
240
252
"format": "float",
241
-
"description": "maximum vertical disposition or maximum margin (will be multiplied by mean centerline deltas to yield pixels)",
253
+
"description": "maximum vertical disposition or maximum margin (will be multiplied by mean centerline deltas to yield pixels); also the mean vertical padding",
242
254
"default": 4.0
243
255
},
256
+
"smoothness": {
257
+
"type": "number",
258
+
"format": "float",
259
+
"description": "kernel size (relative to image height) of horizontal blur applied to foreground to find the center line; the smaller the more dynamic (0.1 would be a better default)",
0 commit comments