From 59325d497be495fd28b961f19d228180798c7a42 Mon Sep 17 00:00:00 2001 From: Yossi Date: Thu, 13 Apr 2017 15:43:17 +0300 Subject: [PATCH] fix piCamera install --- stage2/01-sys-tweaks/01-run.sh | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index ef60686..ef70aa8 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -127,6 +127,18 @@ sudo apt-get install python-pip -y echo "========== Installing Numpy ============" sudo pip install numpy +echo "========== Install picamera ============" +export READTHEDOCS="True" +sudo pip install "picamera[array]" + + +# enable camera on raspi-config +echo "" >> /boot/config.txt +echo "#enable piCaera" >> /boot/config.txt +echo "start_x=1" >> /boot/config.txt + + + echo "========== Downloading and installing OpenCV ============" cd / # git clone https://github.com/Itseez/opencv.git --depth 1 @@ -153,17 +165,7 @@ sudo rm opencv-3.1.0.zip # TODO: Add a test if openCV was installed correctly - - -echo "========== Install picamera ============" -export READTHEDOCS="True" -sudo apt-get install python-picamera - -# enable camera on raspi-config -echo "" >> /boot/config.txt -echo "#enable piCaera" >> /boot/config.txt -echo "start_x=1" >> /boot/config.txt - + echo "========== Setup sound to I2S ============" sudo curl -sS https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh | bash