install picamera & apt-get pip

This commit is contained in:
Yossi 2017-04-12 13:22:32 +03:00
parent 3cf7a63610
commit 6d9ab9f47a

View File

@ -122,15 +122,11 @@ sudo chmod 777 -R /home/Cardigan/modules/video/
echo "========== Installing pip ============" echo "========== Installing pip ============"
sudo wget https://bootstrap.pypa.io/get-pip.py sudo apt-get install python-pip
sudo chmod +x get-pip.py
sudo python get-pip.py
echo "========== Installing Numpy ============" echo "========== Installing Numpy ============"
sudo pip install numpy sudo pip install numpy
sudo rm get-pip.py
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
@ -160,6 +156,7 @@ sudo rm opencv-3.1.0.zip
echo "========== Install picamera ============" echo "========== Install picamera ============"
sudo pip install picamera
sudo pip install "picamera[array]" sudo pip install "picamera[array]"
# enable camera on raspi-config # enable camera on raspi-config
echo "" >> /boot/config.txt echo "" >> /boot/config.txt