image text extraction completed

This commit is contained in:
timothyafolami
2024-08-08 14:58:44 +01:00
parent 9a2a4c5fdd
commit c54dc17989
13 changed files with 331 additions and 7 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ class TextExtractor:
except Exception as e:
print(f"Error reading text from image: {e}")
return ""
finally:
os.remove(image_path)
# finally:
# os.remove(image_path)
def read_text_from_pdf(self, pdf_path):
"""