From c66b09a1ea84b6da824ff723e6aff588a5c46eca Mon Sep 17 00:00:00 2001
From: Stephane Chavin <stephane.chavin@lis-lab.fr>
Date: Fri, 31 Jan 2025 10:19:16 +0100
Subject: [PATCH] Update file get_train_annot.py

---
 get_train_annot.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/get_train_annot.py b/get_train_annot.py
index 731cc9d..a4ea16e 100755
--- a/get_train_annot.py
+++ b/get_train_annot.py
@@ -83,8 +83,8 @@ def main(entry, arguments, species_list):
                 (arguments.rf / 2)  # take height value in pixels
 
             # Correction if the boxes are corrupted (> 1 or < 0)
-            x_pxl, width_pxl = correct_box(x_pxl, width_pxl)
-            y_pxl, height_pxl = correct_box(y_pxl, height_pxl)
+            x_pxl, width_pxl = utils.correct_box(x_pxl, width_pxl)
+            y_pxl, height_pxl = utils.correct_box(y_pxl, height_pxl)
 
             # Store the annotation in a DataFrame
             new_table = pd.DataFrame([[str(species_list[species_list.species == specie].index[0]),
-- 
GitLab