Skip to content

Commit 7d31737

Browse files
authored
Added Installation steps for Raspberry Pi 4B
I just wanted to add these steps to the README.md since it seems there are folks interested in these steps.
1 parent 8c2cd61 commit 7d31737

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Want to use BirdNET to analyze a large dataset? Don't hesitate to contact us: cc
99

1010
# Setup (Ubuntu 18.04)
1111

12-
TFLite for x86 platforms comes with the standard Tensorflow package. If you are on a different platform, you need to install a dedicated version of TFLite (e.g., a pre-compiled version for Raspberry Pi).
12+
TFLite for x86 platforms comes with the standard Tensorflow package. If you are on a different platform, you need to install a dedicated version of TFLite (e.g., a pre-compiled version for Raspberry Pi). See Raspberry Pi 4B installation instructions below.
1313

14+
## x86
1415
We need to setup TF2.3+ for BirdNET. First, we install Python 3 and pip:
1516

1617
```
@@ -46,6 +47,21 @@ sudo pip3 install numpy
4647

4748
Note: BirdNET expects 3-second chunks of raw audio data, sampled at 48 kHz.
4849

50+
## Raspberry Pi 4B running AArch64 OS
51+
These steps install BirdNET-Lite on a Raspberry Pi 4B running an AArch64 OS using pre-built TFLite binaries.
52+
1. Install dependencies<br>`sudo apt install swig libjpeg-dev zlib1g-dev python3-dev unzip wget python3-pip curl git cmake make`
53+
1. Update pip, whell, and setuptools:<br>`sudo pip3 install --upgrade pip wheel setuptools`
54+
1. Fetch pre-built binaries:
55+
1. `curl -sc /tmp/cookie "https://drive.google.com/uc?export=download&id=1dlEbugFDJXs-YDBCUC6WjADVtIttWxZA" > /dev/null`
56+
1. `CODE="$(awk '/_warning_/ {print $NF}' /tmp/cookie)"`
57+
1. `curl -Lb /tmp/cookie "https://drive.google.com/uc?export=download&confirm=${CODE}&id=1dlEbugFDJXs-YDBCUC6WjADVtIttWxZA" -o tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl`
58+
1. `sudo pip3 install --upgrade tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl`
59+
1. `sudo pip3 install librosa`
60+
1. `sudo apt-get install ffmpeg`
61+
1. `git clone https://github.com/kahst/BirdNET-Lite.git`
62+
1. `cd BirdNET-Lite/`<br>and test:
63+
1. `python3 analyze.py --i 'example/XC558716 - Soundscape.mp3' --lat 35.4244 --lon -120.7463 --week 18`
64+
4965
# Usage
5066

5167
You can run BirdNET via the command line. You can add a few parameters that affect the output.

0 commit comments

Comments
 (0)