Skip to content

Commit

Permalink
fix(text): rename deskew to is_skewed
Browse files Browse the repository at this point in the history
And update its doc strings
  • Loading branch information
flooie committed May 29, 2024
1 parent c4514eb commit b02b7aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doctor/lib/text_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from PIL import Image


def deskew(obj: dict) -> bool:
"""Remove skewed text from a page
def is_skewed(obj: dict) -> bool:
"""Check if a PDF plumber dict is skewed
CTM stands for current transformation matrix.
Pdf plumber has a method to calculate the angle of text which we use here
Expand Down

0 comments on commit b02b7aa

Please sign in to comment.