fix piCamera install

This commit is contained in:
Yossi 2017-04-13 15:43:17 +03:00
parent a997d0ecee
commit 59325d497b

View File

@ -127,6 +127,18 @@ sudo apt-get install python-pip -y
echo "========== Installing Numpy ============" echo "========== Installing Numpy ============"
sudo pip install 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 ============" echo "========== Downloading and installing OpenCV ============"
cd / cd /
# git clone https://github.com/Itseez/opencv.git --depth 1 # git clone https://github.com/Itseez/opencv.git --depth 1
@ -155,16 +167,6 @@ sudo rm opencv-3.1.0.zip
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 ============" echo "========== Setup sound to I2S ============"
sudo curl -sS https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh | bash sudo curl -sS https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh | bash