reading grouped annotations ; to and from tablette

This commit is contained in:
2026-03-03 07:48:31 +01:00
parent 7a43be3ac1
commit 9acdb66bab
4 changed files with 291 additions and 3 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ def detect_checks_and_notes(output_dir):
json_path = os.path.join(output_dir, "checkboxes.json")
if not (os.path.exists(pdf_path) and os.path.exists(ref_path)):
print(f"Missing files in {output_dir}")
print(f"\tMissing annotated file in {output_dir}")
return [], None
# Load Coordinates
@@ -159,8 +159,8 @@ def has_significant_notes(note_img, threshold=20):
# Count pixels with significant opacity
visible_pixels = np.sum(alpha > 50)
# visible_pixels_bis = np.sum(alpha > 200)
if visible_pixels > 0:
print(f"Debug : visible pixels is {visible_pixels}")
# if visible_pixels > 0:
# print(f"Debug : visible pixels is {visible_pixels}")
return visible_pixels > threshold
def apply_actions_and_regenerate(root_dir, data, student_id, actions, notes_layer, all_labels):