Skip to content

Battybirdnet pi : WIP #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 90 commits into
base: main
Choose a base branch
from

Conversation

alexbelgium
Copy link

@alexbelgium alexbelgium commented Apr 28, 2025

This is a proposal for a combination of BirdNET-Pi and BattyBirdNET-Pi

Logic :

  • BattyBirdNET-Analyzer repository from @rdz-oss is downloaded as a sub-folder of BirdNET-Pi
  • server.py contains 2 analysis logic : run_analysis (as before), and run_bats_analysis
  • If BATS_ANALYSIS set to 1 :
    • Logo changes to BattyBirdNET logo
    • birdnet_recording uses the BATS_SAMPLING frequency for recording, and forces wav files
    • birdnet_analysis.py uses run_bats_analysis
      • starts the BattyBirdNET-Analyzer server
      • sends the file to it for analysis using the customized reporting.py
      • recovers the detections and continue the normal workflow
    • spectrogram_viewer adapts its frequency to BATS_SAMPLING

There is additions :

  • DENOISER : only applies for bats
  • timer service : allows to configure if only one model starts during a specific time, or if both run in alternance

Specific requirements : bottle (for Analyzer), and tflite runtimes 2.11.0 (not sure why)

To do :

  • write readme
  • check all functions
  • allow both models to run at night ; which requires to duplicate files before analysis to restore the 48000 sampling rate to the BirdNET file
  • Have a custom installer that would allow to only install the battybirdnet-analyzer if required to save place on small devices

@alexbelgium alexbelgium marked this pull request as draft May 11, 2025 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant