Skip to content

Commit

Permalink
ocrd interface: add ignore_page_extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Aug 24, 2024
1 parent ddcc019 commit d7caeb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qurator/eynollah/ocrd-tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
"default": false,
"description": "try to return contour of textlines instead of just rectangle bounding box. Needs more processing time"
},
"ignore_page_extraction": {
"type": "boolean",
"default": false,
"description": "if this parameter set to true, this tool would ignore page extraction"
},
"allow_scaling": {
"type": "boolean",
"default": false,
Expand Down
1 change: 1 addition & 0 deletions qurator/eynollah/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def process_page_pcgts(self, *input_pcgts: Optional[OcrdPage], page_id: Optional
curved_line=self.parameter['curved_line'],
light_version=self.parameter['light_mode'],
right2left=self.parameter['right_to_left'],
ignore_page_extraction=self.parameter['ignore_page_extraction'],
textline_light=self.parameter['textline_light'],
full_layout=self.parameter['full_layout'],
allow_scaling=self.parameter['allow_scaling'],
Expand Down

0 comments on commit d7caeb2

Please sign in to comment.