Skip to content

Commit

Permalink
Merge pull request #784 from sbrunner/fix-grayscale-mask
Browse files Browse the repository at this point in the history
Also work on missing mask file
  • Loading branch information
sbrunner authored Aug 17, 2022
2 parents 99b70d9 + 8a35655 commit 740edcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scan_to_paperless/process.py
Original file line number Diff line number Diff line change
@@ -172,7 +172,7 @@ def _get_mask(
if mask_file
else auto_mask_config.get("additional_filename")
)
if mask_file:
if mask_file and os.path.exists(mask_file):
mask = cv2.add(
mask,
cv2.bitwise_not(

0 comments on commit 740edcc

Please # to comment.