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 ============"
sudo wget https://bootstrap.pypa.io/get-pip.py
sudo chmod +x get-pip.py
sudo python get-pip.py
sudo apt-get install python-pip
echo "========== Installing Numpy ============"
sudo pip install numpy
sudo rm get-pip.py
echo "========== Downloading and installing OpenCV ============"
cd /
# git clone https://github.com/Itseez/opencv.git --depth 1
@ -160,6 +156,7 @@ sudo rm opencv-3.1.0.zip
echo "========== Install picamera ============"
sudo pip install picamera
sudo pip install "picamera[array]"
# enable camera on raspi-config
echo "" >> /boot/config.txt