From 20195f8f6c776629540b66f37f9a47234241d981 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Thu, 14 Jul 2022 21:20:51 +0200 Subject: [PATCH] Crop images so the system UI is not visible. Closes #25 --- Docker/annotate_header.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Docker/annotate_header.py b/Docker/annotate_header.py index ed93294..11d678a 100644 --- a/Docker/annotate_header.py +++ b/Docker/annotate_header.py @@ -110,6 +110,7 @@ with Image.open(output_file) as im: if len(found_needles) == 0: exit(0) os.remove(output_file) + im = im.crop((0, 24, 2880, 1588)) im = im.resize((im.width // 2, im.height // 2)) output_filename = domain.replace(".", "_") + "_" + output_suffix im.save(output_dir + "/" + output_filename, "PNG")