A research about rice bug detection.
-
Update raspberry pi
sudo apt update && sudo apt upgrade -y
-
Install pip3 and camera
sudo apt install python3-pip python3-picamera -y
&&sudo pip3 install adafruit-python-shell
-
Download and install raspi-blinka
wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/raspi-blinka.py
&&sudo python3 raspi-blinka.py
-
Download and install i2smic
wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2smic.py
&&sudo python i2smic.py
-
Download riceup
git clone https://github.com/dvbondoy/riceup.git
-
Install requirements
cd riceup
&&pip3 install -r requirements.txt
-
Copy 'asoundrc' to /home/pi and rename it to '.asoundrc'.
cp asoundrc /home/pi && mv /home/pi/asoundrc /home/pi/.asoundrc
-
Configure settings in
config.ini
-
Run
python main.py
or./main.py