Merge branch 'ocrd-cli' of github.com:qurator-spk/eynollah into ocrd-cli

pull/33/head
Konstantin Baierer 3 years ago
commit b11558cd4d

@ -20,23 +20,23 @@
"dpi": {
"type": "number",
"format": "float",
"description": "pixel density in dots per inch (overrides any meta-data in the images); disabled when <= 0",
"default": -1
"description": "pixel density in dots per inch (overrides any meta-data in the images); ignored if <= 0 (with fall-back 230)",
"default": 0
},
"full_layout": {
"type": "boolean",
"default": true,
"description": "Try to detect all elements, including drop-caps and marginalia"
"description": "Try to detect all element subtypes, including drop-caps and headings"
},
"curved_line": {
"type": "boolean",
"default": false,
"description": "if this parameter set to true, this tool will try to return contoure of textlines instead of rectabgle bounding box of textline. This should be taken into account that with this option the tool need more time to do process."
"description": "try to return contour of textlines instead of just rectangle bounding box. Needs more processing time"
},
"allow_enhancement": {
"type": "boolean",
"default": true,
"description": "if this parameter set to true, this tool would check that input image need resizing and enhancement or not. If so output of resized and enhanced image and corresponding layout data will be written in out directory"
"description": "if the input image has less than 300 DPI, then upscale and enhance"
},
"allow_scaling": {
"type": "boolean",
@ -46,7 +46,7 @@
"headers_off": {
"type": "boolean",
"default": false,
"description": "if this parameter set to true, this tool would ignore headers role in reading order"
"description": "ignore the special role of headings during reading order detection"
}
}
}

@ -87,7 +87,7 @@ class EynollahXmlWriter():
points_co += str(int((all_found_texline_polygons_marginals[marginal_idx][j][l][0][0] + all_box_coord_marginals[marginal_idx][2] + page_coord[2]) / self.scale_x))
points_co += ','
points_co += str(int((all_found_texline_polygons_marginals[marginal_idx][j][l][0][1] + all_box_coord_marginals[marginal_idx][0] + page_coord[0]) / self.scale_y))
points += ' '
points_co += ' '
coords.set_points(points_co[:-1])
def serialize_lines_in_region(self, text_region, all_found_texline_polygons, region_idx, page_coord, all_box_coord, slopes, counter):

Loading…
Cancel
Save