From d06c67ec61e54682d24d202d771bab03b13bd8da Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:52:01 +0200 Subject: [PATCH] Add detection confidence for confirmed species --- scripts/advanced.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/scripts/advanced.php b/scripts/advanced.php index 859c48595..76183c78f 100644 --- a/scripts/advanced.php +++ b/scripts/advanced.php @@ -205,6 +205,15 @@ $contents = preg_replace("/CONFIRM_SPECIES=.*/", "CONFIRM_SPECIES=0", $contents); } + if(isset($_GET["detection_confirmed"])) { + $confirm_species = 1; + if(strcmp($CONFIRM_SPECIES,$config['DETECTION_CONFIRMED']) !== 0) { + $contents = preg_replace("/DETECTION_CONFIRMED=.*/", "DETECTION_CONFIRMED=$detection_confirmed", $contents); + } + } else { + $contents = preg_replace("/DETECTION_CONFIRMED=.*/", "DETECTION_CONFIRMED=", $contents); + } + if(isset($_GET["custom_image"])) { $custom_image = $_GET["custom_image"]; if(strcmp($custom_image,$config['CUSTOM_IMAGE']) !== 0) { @@ -446,8 +455,13 @@ function collectrtspUrls() { > -

This allows to visually mark species that were manually confirmed as existing in the area. A new question mark appears next to species names in the Recordings page. Clicking it changes the icon to a checkmark, and add the species to the file confirmed_species_list.txt.


- +

This allows to visually mark species that were manually confirmed as existing in the area. A new question mark appears next to species names in the Recordings page. Clicking it changes the icon to a checkmark, and add the species to the file confirmed_species_list.txt.

+

+ +
+     Min=0.01, Max=0.99 ; allows to specify a different confidence level for species confirmed in the vicinity +

+