Cleanup file after ocr
This commit is contained in:
@@ -67,6 +67,6 @@ def ocr_document(document):
|
|||||||
document_page.save()
|
document_page.save()
|
||||||
finally:
|
finally:
|
||||||
f.close()
|
f.close()
|
||||||
#cleanup(filepath)
|
cleanup(filepath)
|
||||||
#cleanup(ocr_output)
|
cleanup(ocr_output)
|
||||||
#cleanup(imagefile)
|
cleanup(imagefile)
|
||||||
|
|||||||
Reference in New Issue
Block a user