I received this message:
git clone -b picamera2 GitHub - sunfounder/vilib: Vision library for python
cd vilib
sudo python3 install.py
fatal: destination path ‘vilib’ already exists and is not an empty directory.
Start installing vilib 0.3.11 for user pi
Python version: 3.9.2
Raspbian version: 11 (32bit)
mediapipe is only supported on 64bit system.
apt install dependency:
- dpkg configure … Done
- update apt-get … Done
- install python3-libcamera … Done
- install python3-picamera2 … Done
- install python3-pyqt5 … Done
- install python3-opengl … Done
- install python3-opencv … Done
- install opencv-data … Done
- install ffmpeg … Done
- install libgtk-3-0 … Done
- install libxcb-shm0 … Done
- install libcdio-paranoia-dev … Done
- install libsdl2-2.0-0 … Done
- install libxv1 … Done
- install libtheora0 … Done
- install libva-drm2 … Done
- install libva-x11-2 … Done
- install libvdpau1 … Done
- install libharfbuzz0b … Done
- install libbluray2 … Done
- install libatlas-base-dev … Done
- install libhdf5-103 … Done
- install libzbar0 … Done
- install libopenblas-dev … Done
pip3 install dependency:
pip3 install with --break-system-packages
- update pip3 … Done
- install tflite-runtime … Done
- install Flask … Done
- install imutils … Done
- install qrcode … Done
- install pyzbar … Done
- install pyzbar[scripts] … Done
- install readchar … Done
- install protobuf>=3.20.0 … Done
- install numpy==1.26.4 … Done
mediapipe is not supported on this platform… Skip
Create workspace
- create dir … Done
- copy workspace … Done
Install vilib python package
- run setup file … Done
- cleanup … Done
Finished
and this:
sudo bash i2samp.sh
Support for your operating system is experimental. Please visit
forums.adafruit if you experience issues with this product.
This script will install everything needed to use
i2s amplifier
— Warning —
Always be careful when running scripts and commands
copied from the internet. Ensure they are from a
trusted source.
If you want to see what this script does before
running it, you should run:
\curl -sS github.com/adafruit/Raspberry-Pi-Installer-Scripts/i2samp
Do you wish to continue? [y/N] y
Checking hardware requirements…
Adding Device Tree Entry to /boot/config.txt
dtoverlay already active
i2s mmap dtoverlay already active
Commenting out Blacklist entry in
/etc/modprobe.d/raspi-blacklist.conf
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
alsa-utils is already the newest version (1.2.4-1+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing aplay systemd unit
Removed /etc/systemd/system/multi-user.target.wants/aplay.service.
You can optionally activate ‘/dev/zero’ playback in
the background at boot. This will remove all
popping/clicking but does use some processor time.
Activate ‘/dev/zero’ playback in background? [RECOMMENDED] [y/N] yy
Configuring sound output
card_num=1
systemctl restart aplay.service
set volume to 100
Simple mixer control ‘PCM’,0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 255
Front Left: 255 [100%]
Front Right: 255 [100%]
We can now test your i2s amplifier
Set your speakers if possible!
Do you wish to test your system now? [y/N] y
Testing…
i2samp.sh: line 536: pinctrl: command not found
speaker-test 1.2.4
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2229 to 8916
Period size range from 1114 to 1115
Using max buffer size 8916
Periods = 4
was set period_size = 1114
was set buffer_size = 8916
0 - Front Left
1 - Front Right
Time per period = 2.863930
0 - Front Left
1 - Front Right
Time per period = 2.998499
0 - Front Left
1 - Front Right
Time per period = 3.018485
0 - Front Left
1 - Front Right
Time per period = 3.015508
0 - Front Left
1 - Front Right
Time per period = 3.018127
All done!
Enjoy your new i2s amplifier!
Still, no sound after adjust sound per alsamixer.