mardi 4 mai 2021

move images to folder if conditions are met in Python

How can I move images to a specific folder if conditions are met? The conditions are probability scores less than 0.2 and greater than 0.8. This is for an object detection system and the probability function is working. I am currently completely confused. This is what I currently have:

if probability <= 0.2:

print ("inside parameter")

elif

probability => 0.8:

print ("inside parameter")

else

print ("outside parameter")

Note: please excuse my formatting and my attempt at code etc as you can probably tell I am a complete amateur and this is my first real attempt at coding. Any help would be most appreciated. Thanks

Aucun commentaire:

Enregistrer un commentaire