Replace leptonica deskew with tesseract find skew and pillow rotate

Also rebuild the cache.
This commit is contained in:
James R. Barlow
2021-11-12 16:35:08 -08:00
parent 25d046ae95
commit a55ab05d16
135 changed files with 4253 additions and 4016 deletions
+5
View File
@@ -366,6 +366,11 @@ class OcrEngine(ABC):
def get_orientation(input_file: Path, options: Namespace) -> OrientationConfidence:
"""Returns the orientation of the image."""
@staticmethod
def get_deskew(input_file: Path, options: Namespace) -> float:
"""Returns the deskew angle of the image, in radians."""
return 0.0
@staticmethod
@abstractmethod
def generate_hocr(