the number of species a model can detect should not matter in the privacy filter

This commit is contained in:
frederik
2025-10-26 16:06:07 +01:00
parent 559f29c37a
commit b101f993dd
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -260,8 +260,7 @@ def analyzeAudioData(chunks, lat, lon, week, sens, overlap,):
def filter_humans(detections):
conf = get_settings()
priv_thresh = conf.getfloat('PRIVACY_THRESHOLD')
human_cutoff = max(10, int(len(detections[0]) * priv_thresh / 100.0))
log.debug("DATABASE SIZE: %d", len(detections[0]))
human_cutoff = max(10, int(6000 * priv_thresh / 100.0))
log.debug("HUMAN-CUTOFF AT: %d", human_cutoff)
censored_detections = []