ocrd interface: add right_to_left

pull/134/head
kba 4 months ago
parent 39b16e5978
commit ddcc0198bd

@ -59,6 +59,11 @@
"default": false, "default": false,
"description": "if this parameter set to true, this tool will try to return contoure of textlines instead of rectangle bounding box of textline with a faster method." "description": "if this parameter set to true, this tool will try to return contoure of textlines instead of rectangle bounding box of textline with a faster method."
}, },
"right_to_left": {
"type": "boolean",
"default": false,
"description": "if this parameter set to true, this tool will extract right-to-left reading order."
},
"headers_off": { "headers_off": {
"type": "boolean", "type": "boolean",
"default": false, "default": false,

@ -30,6 +30,7 @@ class EynollahProcessor(Processor):
allow_enhancement=self.parameter['allow_enhancement'], allow_enhancement=self.parameter['allow_enhancement'],
curved_line=self.parameter['curved_line'], curved_line=self.parameter['curved_line'],
light_version=self.parameter['light_mode'], light_version=self.parameter['light_mode'],
right2left=self.parameter['right_to_left'],
textline_light=self.parameter['textline_light'], textline_light=self.parameter['textline_light'],
full_layout=self.parameter['full_layout'], full_layout=self.parameter['full_layout'],
allow_scaling=self.parameter['allow_scaling'], allow_scaling=self.parameter['allow_scaling'],

Loading…
Cancel
Save