Skip to content

Commit

Permalink
Update doctr/models/predictor/base.py
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Dulcy <[email protected]>
  • Loading branch information
felixdittrich92 and odulcy-mindee authored Sep 30, 2024
1 parent ae358ea commit 489a7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doctr/models/predictor/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _straighten_pages(
]
)
return [
# expand if height and width are not equal, afterwards remove padding
# expand if height and width are not equal, then remove the padding
remove_image_padding(rotate_image(page, angle, expand=page.shape[0] != page.shape[1]))
for page, angle in zip(pages, origin_pages_orientations)
]
Expand Down

0 comments on commit 489a7c4

Please sign in to comment.