Improve query accuracy for today's birds
This commit is contained in:
+3
-5
@@ -50,8 +50,6 @@ with open(userDir + '/BirdNET-Pi/scripts/thisrun.txt', 'r') as f:
|
||||
audiofmt = "." + str(str(str([i for i in this_run if i.startswith('AUDIOFMT')]).split('=')[1]).split('\\')[0])
|
||||
priv_thresh = float("." + str(str(str([i for i in this_run if i.startswith('PRIVACY_THRESHOLD')]).split('=')[1]).split('\\')[0])) / 10
|
||||
|
||||
settings_dict = config_to_settings(userDir + '/BirdNET-Pi/scripts/thisrun.txt')
|
||||
|
||||
def loadModel():
|
||||
|
||||
global INPUT_LAYER_INDEX
|
||||
@@ -402,10 +400,10 @@ def handle_client(conn, addr):
|
||||
time.sleep(2)
|
||||
|
||||
# Apprise of detection if not already alerted this run.
|
||||
if not str(entry[0]) in species_apprised_this_run:
|
||||
if not entry[0] in species_apprised_this_run:
|
||||
settings_dict = config_to_settings(userDir + '/BirdNET-Pi/scripts/thisrun.txt')
|
||||
sendAppriseNotifications(str(entry[0]), str(entry[1]), File_Name, settings_dict)
|
||||
|
||||
species_apprised_this_run.append(str(entry[0]))
|
||||
species_apprised_this_run.append(entry[0])
|
||||
|
||||
print(str(current_date) +
|
||||
';' +
|
||||
|
||||
Reference in New Issue
Block a user