Tags: Nithishk29/pytesseract
Tags
Fix error with temp file read access on Windows Attempting to access the temp file after creation on Windows will trigger Permission Error. The fix is to set the the delete flag to False (which is a quick and dirty hack), which allows Python to 'release' the file handle, resulting in successful subsequent read access under Windows. Docs reference: https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile `Whether the name can be used to open the file a second time, while the named temporary file is still open, varies across platforms (it can be so used on Unix; it cannot on Windows NT or later)` Fixes madmaze#255
PreviousNext