Skip to content

Commit

Permalink
Try to fix OCR
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropombeiro committed Oct 7, 2024
1 parent 0de5d6f commit 9b36b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def convert_and_post_process(
ocr_port = os.getenv("OCR_PORT")
ocr_path = os.getenv("OCR_PATH")

if not any([ocr_server, ocr_port, ocr_path]):
if not all([ocr_server, ocr_port, ocr_path]):
print(f" {side} side: OCR environment variables not set, skipping OCR.")
else:
ocr_pdf_name = f"{job_name}-ocr.pdf"
Expand Down

0 comments on commit 9b36b70

Please sign in to comment.