Skip to content

A live bird collage card for your Home Assistant dashboard.

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

frederikb101f993ddb3
diff --git a/scripts/advanced.php b/scripts/advanced.php
index 48ac7bc7..2a65d1b6 100644
--- a/scripts/advanced.php
+++ b/scripts/advanced.php
@@ -280,8 +280,7 @@ if (isset($_GET["max_files_species"])) {
}
}
-$count_labels = count(file($home."/BirdNET-Pi/model/labels.txt"));
-$count = $count_labels;
+$count = 6000;
?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
diff --git a/scripts/server.py b/scripts/server.py
index e4acce86..e2807b45 100644
--- a/scripts/server.py
+++ b/scripts/server.py
@@ -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 = []