Initial support for automatic fixing of additional and wrong label
This commit is contained in:
+2
-4
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user