Skip to content

Commit c2f9203

Browse files
author
Robert Sachunsky
committed
resegment: update README
1 parent bc4bb6b commit c2f9203

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,25 @@ ocrd-cis-ocropy-resegment \
228228

229229
Available parameters are:
230230
```sh
231-
"dpi" [number - -1]
231+
"level-of-operation" [string - "page"]
232+
PAGE XML hierarchy level to segment textlines in ('region' abides by
233+
existing text region boundaries, 'page' optimises lines in the whole
234+
page once
235+
Possible values: ["page", "region"]
236+
"method" [string - "lineest"]
237+
source for new line polygon candidates ('lineest' for line
238+
estimation, i.e. how Ocropy would have segmented text lines;
239+
'baseline' tries to re-polygonize from the baseline annotation;
240+
'ccomps' avoids crossing connected components by majority rule)
241+
Possible values: ["lineest", "baseline", "ccomps"]
242+
"dpi" [number - 0]
232243
pixel density in dots per inch (overrides any meta-data in the
233-
images); disabled when negative
234-
"min_fraction" [number - 0.8]
235-
share of foreground pixels that must be retained by the largest label
244+
images); disabled when zero or negative
245+
"min_fraction" [number - 0.75]
246+
share of foreground pixels that must be retained by the output
247+
polygons
236248
"extend_margins" [number - 3]
237-
number of pixels to extend the input polygons horizontally and
238-
vertically before intersecting
249+
number of pixels to extend the input polygons in all directions
239250
```
240251
241252
### ocrd-cis-ocropy-segment

0 commit comments

Comments
 (0)