From 194e0c867b86859ecf6490ab5419cb5b85d40d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Miquel?= Date: Sun, 8 Feb 2026 20:42:54 +0100 Subject: [PATCH] Use Anot and Bnot directories --- annotating.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/annotating.py b/annotating.py index 2efeca0..6b15796 100644 --- a/annotating.py +++ b/annotating.py @@ -79,8 +79,6 @@ def make_dictionary(root_dir): } return result_data -# output the resulting dictionary -# print(json.dumps(result_data, indent=2, ensure_ascii=False)) import io import shutil @@ -200,12 +198,13 @@ def render_latex_text(text, width_px, bg_color=(255, 255, 255, 255), max_lines=N final_img.alpha_composite(img) return final_img - def process_correction(root_dir, data, all_labels): for student_id, labels in data.items(): # Prepare output directory: Dir/Anot_CopieID - output_dir = os.path.join(root_dir, f"Anot_Copie{student_id}") + output_dir = os.path.join(root_dir, "Anot", f"Copie{student_id}") + + # output_dir = os.path.join(root_dir, f"Anot_Copie{student_id}") # Check if already processed (Concat.jpg exists) concat_path = os.path.join(output_dir, "Concat.jpg")