Use Anot and Bnot directories

master
Sébastien Miquel 2026-02-08 20:42:54 +01:00
parent c1451a7a99
commit 194e0c867b
1 changed files with 3 additions and 4 deletions

View File

@ -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")