limit the precision: the rest is just noise

This commit is contained in:
frederik
2024-03-22 10:13:22 +01:00
parent 56a3f86b98
commit 5a7b9a093c
+1 -1
View File
@@ -55,7 +55,7 @@ class Detection:
def __init__(self, start_time, stop_time, species, confidence):
self.start = float(start_time)
self.stop = float(stop_time)
self.confidence = float(confidence)
self.confidence = round(float(confidence), 4)
self.confidence_pct = round(self.confidence * 100)
self.species = species
self.scientific_name = species.split('_')[0]