Skip to content

Commit

Permalink
s/image/imagename in line containers
Browse files Browse the repository at this point in the history
Fixes crashes in recognizer
  • Loading branch information
mittagessen committed Dec 5, 2023
1 parent 71029f7 commit c9575f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kraken/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,11 @@ def _reorder(self, base_dir: Optional[Literal['L', 'R']] = None) -> 'BaselineOCR
boundary=self.boundary,
text=self.text,
base_dir=self._line_base_dir,
image=self.image,
imagename=self.imagename,
tags=self.tags,
split=self.split,
regions=self.regions)

rec = BaselineOCRRecord(prediction=prediction,
cuts=cuts,
confidences=confidences,
Expand Down Expand Up @@ -581,7 +582,7 @@ def _reorder(self, base_dir: Optional[Literal['L', 'R']] = None) -> 'BBoxOCRReco
bbox=self.bbox,
text=self.text,
base_dir=self._line_base_dir,
image=self.image,
imagename=self.imagename,
tags=self.tags,
split=self.split,
regions=self.regions)
Expand Down

0 comments on commit c9575f0

Please sign in to comment.