the number of species a model can detect should not matter in the privacy filter
This commit is contained in:
@@ -280,8 +280,7 @@ if (isset($_GET["max_files_species"])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$count_labels = count(file($home."/BirdNET-Pi/model/labels.txt"));
|
$count = 6000;
|
||||||
$count = $count_labels;
|
|
||||||
?>
|
?>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
+1
-2
@@ -260,8 +260,7 @@ def analyzeAudioData(chunks, lat, lon, week, sens, overlap,):
|
|||||||
def filter_humans(detections):
|
def filter_humans(detections):
|
||||||
conf = get_settings()
|
conf = get_settings()
|
||||||
priv_thresh = conf.getfloat('PRIVACY_THRESHOLD')
|
priv_thresh = conf.getfloat('PRIVACY_THRESHOLD')
|
||||||
human_cutoff = max(10, int(len(detections[0]) * priv_thresh / 100.0))
|
human_cutoff = max(10, int(6000 * priv_thresh / 100.0))
|
||||||
log.debug("DATABASE SIZE: %d", len(detections[0]))
|
|
||||||
log.debug("HUMAN-CUTOFF AT: %d", human_cutoff)
|
log.debug("HUMAN-CUTOFF AT: %d", human_cutoff)
|
||||||
|
|
||||||
censored_detections = []
|
censored_detections = []
|
||||||
|
|||||||
Reference in New Issue
Block a user