From f7a530395de7e5ca62ff43428ec24f2413aba707 Mon Sep 17 00:00:00 2001 From: Tom Selier Date: Thu, 28 Sep 2023 10:01:48 +0200 Subject: [PATCH] Template extraction skips earlier created files --- src/experiments/template_extraction/script.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/experiments/template_extraction/script.py b/src/experiments/template_extraction/script.py index e17e00f..50d8424 100644 --- a/src/experiments/template_extraction/script.py +++ b/src/experiments/template_extraction/script.py @@ -110,6 +110,8 @@ for folder in os.listdir(input_directory): if VERBOSE: print("Created folder: " + out_folder) os.mkdir(out_folder) + else: + continue for file in os.listdir(os.path.join(input_directory, folder)): ## Laad plaatjes in kleur ## @@ -139,6 +141,9 @@ for folder in os.listdir(input_directory): corners, ids) + if VERBOSE: + print("IDs detected:\n", ids) + if ids is None: print("Skipping: ", filename) print("=============================================")