Initial support for automatic fixing of additional and wrong label

This commit is contained in:
2026-03-15 22:28:15 +01:00
parent 5f1613b8c1
commit f43c296e8a
11 changed files with 292 additions and 61 deletions
+2 -4
View File
@@ -395,7 +395,7 @@ def compose_label_image(base_img, label, result, hmin,
width = base_img.width // 2 - 150
img_score = render_score_text(label, score, error, width,
fontsize=18, with_error=with_error,
id=with_error)
id=with_id)
header_elements.append({"type": "score", "img": img_score, "data": result})
# Global Feedbacks
@@ -486,9 +486,7 @@ def compose_label_image(base_img, label, result, hmin,
return final_img, header_height
def natural_key(text):
return [int(c) if c.isdigit() else c.lower() for c in re.split(r'(\d+)', str(text))]
from utils import natural_key
import concurrent.futures
def process_student(student_id, labels_data, root_dir, all_labels, overwrite):