image text extraction completed
This commit is contained in:
+2
-2
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user