tflite_micro_runtime for Raspberry PI Zero.
Prepare new Raspberry Pi Zero whit Raspberry Pi OS Lite
sudo apt-get update
sudo apt-get upgrade
reboot
sudo apt-get install python3-pip
sudo apt-get install python3-numpy
sudo apt-get install python3-argcomplete
sudo apt-get install python3-pil
python3 -m venv --system-site-packages .venv
source .venv/bin/activate
Download file - tflite_micro_runtime-1.2.2-cp311-cp311-linux_armv6l.whl
pip3 install tflite_micro_runtime-1.2.2-cp311-cp311-linux_armv6l.whl
deactivate
For image recognition:
source test_image_recognition_float32.sh
For speech recognition:
sudo apt-get install libportaudio2
source .venv/bin/activate
pip3 install scipy
pip3 install python_speech_features
pip3 install sounddevice
deactivate
attach USB microphone/USB webcam with microphone/USB sound card with microphone | connect BT hands free
source test_speech_wake_word_float32.sh
For person recognition from videocamera:
sudo apt install -y python3-picamera2 --no-install-recommends
source test_notperson_person_camera_float32.sh
.
tflite_micro_runtime binary code from https://github.com/driedler/tflite_micro_runtime