Skip to content

Commit

Permalink
Remove binarization step
Browse files Browse the repository at this point in the history
Will not work with the new way of storing images.
  • Loading branch information
viklofg committed May 31, 2024
1 parent 0fc0955 commit f9d62c5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/htrflow_core/pipeline/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from htrflow_core.models.importer import all_models
from htrflow_core.postprocess.reading_order import left_right_top_down, order_region_with_marginalia
from htrflow_core.serialization import get_serializer
from htrflow_core.utils.imgproc import binarize, write
from htrflow_core.utils.imgproc import write
from htrflow_core.utils.layout import estimate_printspace
from htrflow_core.volume.volume import Volume

Expand Down Expand Up @@ -65,13 +65,6 @@ class TextRecognition(Inference):
pass


class Binarization(PipelineStep):
def run(self, volume):
for page in volume:
page.image = binarize(page.image)
return volume


class WordSegmentation(PipelineStep):
requires = [TextRecognition]

Expand Down

0 comments on commit f9d62c5

Please sign in to comment.