reading grouped annotations ; to and from tablette
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user