You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Can't use option deskew, clean and clean_final in the ocrmypdf.ocr() method, it returns the error in the title specifically for a temporary file called "output.pgm". This file is not used by any other process.
The solution is to upgrade to Python 3.10, the only released version with the fix available python/cpython#24793
in addition this requires a change to ocrmypdf to take advantage of the new version.
I suspect it's actually a virus scanner process triggering this issue.
Describe the bug
Can't use option deskew, clean and clean_final in the ocrmypdf.ocr() method, it returns the error in the title specifically for a temporary file called "output.pgm". This file is not used by any other process.
To Reproduce
title_in = temp_folder_image2pdf+"IMAGE_TEMP.jpg"
image = images[0]
image.save(title_in, "JPEG")
image.close()
title_out = temp_folder_image2pdf+"img2pdf.pdf"
ocrmypdf.ocr(title_in, title_out, language="ita", deskew=True, clean=True, clean_final=True, image_dpi=300)
Expected behavior
Resulting OCR of the input image
Screenshots
System (please complete the following information):
Installation
OCRmyPDF was installed using pip, while Unpaper using chocolatey.
The text was updated successfully, but these errors were encountered: