Skip to content

Commit

Permalink
fix dedocutils
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Shevtsov committed Sep 29, 2023
1 parent 7b8f3b4 commit ea192d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _process_one_page(self,

# --- Step 2: do binarization ---
if parameters.need_binarization:
rotated_image = self.binarizer.preprocess(rotated_image)
rotated_image, _ = self.binarizer.preprocess(rotated_image)
if self.config.get("debug_mode"):
cv2.imwrite(os.path.join(self.config["path_debug"], f"{datetime.now().strftime('%H-%M-%S')}_result_binarization.jpg"), rotated_image)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ beautifulsoup4>=4.10.0,<=4.12.2
charset-normalizer>=2.0.12,<=3.2.0
Cython>=0.29.28,<=3.0.2
docx==0.2.4
dedoc-utils==0.3.3
-e git+https://github.com/ispras/dedoc-utils.git@9a831725ead2fea684df12b96780ea0fa0200d91#egg=dedoc-utils
fastapi>=0.77.0,<=0.103.0
huggingface-hub>=0.14.1,<=0.16.4
imutils==0.5.4
Expand Down

0 comments on commit ea192d6

Please sign in to comment.