fix: correct OCR language

This commit is contained in:
Lunaresk 2024-11-02 23:46:02 +01:00
parent a6f229e7fb
commit d34f2adb2f
3 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -27,7 +27,7 @@ class PDFReceipt:
with fitz.open(file, filetype="pdf") as doc:
words = []
for page in doc:
words.extend(page.get_text("words", textpage=page.get_textpage_ocr(), sort=True))
words.extend(page.get_text("words", textpage=page.get_textpage_ocr(language = 'deu'), sort=True))
return words
def _getStoreName(words: list[tuple]) -> str: