Skip to content
Snippets Groups Projects
Commit 9429b720 authored by Stephane Chavin's avatar Stephane Chavin
Browse files

remove too small labels

parent f8444c55
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,8 @@ def main(entry, arguments, species_list): ...@@ -84,7 +84,8 @@ def main(entry, arguments, species_list):
# Correction if the boxes are corrupted (> 1 or < 0) # Correction if the boxes are corrupted (> 1 or < 0)
x_pxl, width_pxl = utils.correct_box(x_pxl, width_pxl) x_pxl, width_pxl = utils.correct_box(x_pxl, width_pxl)
y_pxl, height_pxl = utils.correct_box(y_pxl, height_pxl) y_pxl, height_pxl = utils.correct_box(y_pxl, height_pxl)
if x_pxl > 1 and width_pxl < 0.05:
continue
# Store the annotation in a DataFrame # Store the annotation in a DataFrame
new_table = pd.DataFrame([[str(species_list[species_list.species == specie].index[0]), new_table = pd.DataFrame([[str(species_list[species_list.species == specie].index[0]),
x_pxl, y_pxl, width_pxl, height_pxl]], x_pxl, y_pxl, width_pxl, height_pxl]],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment