forjinrange (NB_IMG_PER_REC):#30*8 secondes - 30*2 secondes (overlap) = 180 secondes affichées sur 30 images : n'affiche que les 3 premières minutes d'un enregistrement
forcount,jinenumerate(range (NB_IMG_PER_REC)):#30*8 secondes - 30*2 secondes (overlap) = 180 secondes affichées sur 30 images : n'affiche que les 3 premières minutes d'un enregistrement
parser.add_argument('-f','--filename_path',type=str,help='Path and name of the file containing the annotations',required=True)
parser.add_argument('-p','--path_to_data',type=str,help='Path of the folder that contain the recodings',required=True)
parser.add_argument('-p','--path_to_data',type=str,help='Path of the folder that contain the recordings',required=True)
parser.add_argument('-d','--direction',type=str,help='Directory to wich spectrograms and .txt files will be stored',required=True)
parser.add_argument('-m','--mode',type=str,choices=['uniform','personalized'],help='Choose the mode to calculate the y and height value',required=True)
parser.add_argument('--export',type=str,default=None,help='To export the position of the bounding box on the spectrogram',required=False)