ES FUNKTIONIERT
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ import pytesseract
|
||||
|
||||
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
|
||||
|
||||
def extrahiere_text_und_bilder(pdf_datei):
|
||||
def extract_text_and_pictures(pdf_datei):
|
||||
doc = pymupdf.open(pdf_datei)
|
||||
text = ""
|
||||
for seite in doc:
|
||||
@@ -20,6 +20,6 @@ def extrahiere_text_und_bilder(pdf_datei):
|
||||
return text
|
||||
|
||||
pdf_datei = 'any.pdf'
|
||||
text = extrahiere_text_und_bilder(pdf_datei)
|
||||
text = extract_text_and_pictures(pdf_datei)
|
||||
|
||||
print(text)
|
||||
Reference in New Issue
Block a user