mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-10 01:57:12 +00:00
silenced unpaper, optipng for cleaner output
moved parser settings to settings removed forgiving ocr (now default) since tesseract is plenty accurate even without defining the correct language.
This commit is contained in:
1 parent
1b5344ddee
commit
9f55fb668d
4 files changed
+33
-64
No files matched your search
@@ -60,7 +60,7 @@ class DocumentParser:
|
||||
|
||||
out_path = os.path.join(self.tempdir, "optipng.png")
|
||||
|
||||
args = (self.OPTIPNG, "-o5", in_path, "-out", out_path)
|
||||
args = (self.OPTIPNG, "-silent", "-o5", in_path, "-out", out_path)
|
||||
if not subprocess.Popen(args).wait() == 0:
|
||||
raise ParseError("Optipng failed at {}".format(args))
|
||||
|
||||
|
||||
Reference in new issue
Block a user