Skip to content

Commit

Permalink
Add detection confidence for confirmed species
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Sep 6, 2024
1 parent 01a2b93 commit d06c67e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions scripts/advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -446,8 +455,13 @@ function collectrtspUrls() {

<label for="confirm_species">Confirmation of species: </label>
<input type="checkbox" name="confirm_species" <?php if($newconfig['CONFIRM_SPECIES'] == 1) { echo "checked"; };?> >
<p>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.</p><br>

<p>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.</p>
<p>
<label for="confidence_confirmed">Minimum Confidence for confirmed species: </label>
<input name="confidence_confirmed" type="number" style="width:4em;" min="0.01" max="0.99" step="0.01" value="<?php print($newconfig['CONFIDENCE_CONFIRMED']);?>" required/><br>
&nbsp;&nbsp;&nbsp;&nbsp;Min=0.01, Max=0.99 ; allows to specify a different confidence level for species confirmed in the vicinity
</p>

</td></tr></table><br>

<table class="settingstable"><tr><td>
Expand Down

0 comments on commit d06c67e

Please sign in to comment.