Skip to content

Commit

Permalink
Revert "segment: use binarized input only if use_legacy"
Browse files Browse the repository at this point in the history
This reverts commit b85e147.
  • Loading branch information
bertsky committed Jul 15, 2022
1 parent 5c7000a commit 0eecf6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocrd_kraken/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def process(self):
page = pcgts.get_Page()
page_image, page_coords, page_info = self.workspace.image_from_page(
page, page_id,
feature_selector="binarized" if self.use_legacy else "")
# "binarized" if self.use_legacy else "")
# binarizatation seems to always be better
feature_selector="binarized")
if page_info.resolution != 1:
dpi = page_info.resolution
if page_info.resolutionUnit == 'cm':
Expand Down

0 comments on commit 0eecf6c

Please sign in to comment.