Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo 'Start Open CV Install for Raspberry'
- echo 'Install prerequisites on your Raspberry Pi'
- read -p "Press enter to continue"
- sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-100
- sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5
- sudo apt-get install libatlas-base-dev
- sudo apt-get install libjasper-dev
- echo 'Here’s how to install virtualenv and virtualenvwrapper, the tools I use to get it done:'
- read -p "Press enter to continue"
- pip install virtualenv virtualenvwrapper
- echo 'Then you need to add the following lines to your ~/.bashrc . Open the file using nano , vim , or emacs and append these lines to the end:'
- read -p "Press enter to continue"
- echo '# virtualenv and virtualenvwrapper'
- echo 'export WORKON_HOME=$HOME/.virtualenvs'
- echo 'export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3'
- echo 'source /usr/local/bin/virtualenvwrapper.sh'
- echo 'source ~/.bashrc'
- read -p "Press enter to continue"
- source ~/.bashrc
- #/bin/bash
- echo 'mkvirtualenv cv -p python3'
- read -p "Press enter to continue"
- mkvirtualenv cv -p python3
- echo 'workon cv'
- read -p "Press enter to continue"
- workon cv
- echo 'pip install opencv-contrib-python'
- read -p "Press enter to continue"
- pip install opencv-contrib-python
- echo 'pip install "picamera[array]"'
- read -p "Press enter to continue"
- pip install "picamera[array]"
- echo 'Testing our pip install of OpenCV'
- read -p "Press enter to continue"
- workon cv
- pip install imutils
- pip install "picamera[array]" # if you're using a Raspberry Pi
- echo 'Should Be finished'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement