JacoboGuijar / pdf-scraper-with-ocr

This is a GUI for scrapping PDFs with the help of optical character recognition making easier than ever to scrape PDFs.
MIT License
83 stars 8 forks source link

File not found #3

Open Lumisette opened 1 year ago

Lumisette commented 1 year ago

Hello, I'm having an issue. It seems it cannot find the file or directory. My PDF file is located in the folder where the pdf scraper is located but when it creates the images, its inside the Downloads folder. When I load the said images, it returns an error stating it cannot find file or directory. Do you have any insights?

Time taken: 15.50197696685791 Not randomized Exception in Tkinter callback Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/__init__.py", line 1921, in __call__ return self.func(*args) File "/Users/camille/Downloads/pdf-scraper-with-ocr-main11/pdf-scraper-with-ocr.py", line 196, in load_images img = Image.open(self.directory + '\\' + image) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PIL/Image.py", line 3092, in open fp = builtins.open(filename, "rb") FileNotFoundError: [Errno 2] No such file or directory: '/Users/camille/Downloads/pdf-scraper-with-ocr-main11\\DS2\\DS0001-01.png'