From 2ec45479ab6d3706fd777bd18660111f1e9686c8 Mon Sep 17 00:00:00 2001 From: Licia Sales <40764768+liciascl@users.noreply.github.com> Date: Thu, 29 Aug 2019 09:47:38 -0300 Subject: [PATCH] Update instalar_opencv_python2.sh --- .../Scripts/instalar_opencv_python2.sh | 118 +----------------- 1 file changed, 1 insertion(+), 117 deletions(-) diff --git a/Informatica/Robotica/Scripts/instalar_opencv_python2.sh b/Informatica/Robotica/Scripts/instalar_opencv_python2.sh index e164b8d..931a1f3 100755 --- a/Informatica/Robotica/Scripts/instalar_opencv_python2.sh +++ b/Informatica/Robotica/Scripts/instalar_opencv_python2.sh @@ -60,7 +60,7 @@ then echo "Tudo configurado certinho... Agora vamos instalar no jupter" if [ $? -eq 0 ] - + then sudo apt install python-pip sudo -H pip install jupyter source ~/.bashrc @@ -119,119 +119,3 @@ fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -sudo apt-get install build-essential cmake unzip pkg-config - - -sudo apt-get install libjpeg-dev libpng-dev libtiff-dev - - - - -sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev - -sudo apt-get install libxvidcore-dev libx264-dev - - -sudo apt-get install libgtk-3-dev - -sudo apt-get install libatlas-base-dev gfortran - - -sudo apt-get install python-dev - -sudo apt-get install python-numpy - - - -mkdir ~/tmp -cd ~/tmp - -rm -Rf opencv-3.4.4/ opencv opencv_contrib opencv_contrib-3.4.4/ - - -wget -O opencv.zip https://github.com/opencv/opencv/archive/3.4.4.zip -wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/3.4.4.zip - - -unzip opencv.zip - -unzip opencv_contrib.zip - - -mv opencv-3.4.4/ opencv -mv opencv_contrib-3.4.4/ opencv_contrib - - - -cd ~/tmp/opencv -mkdir build -cd build -cmake -D CMAKE_BUILD_TYPE=RELEASE \ - -D CMAKE_INSTALL_PREFIX=/usr/local \ - -D INSTALL_PYTHON_EXAMPLES=ON \ - -D INSTALL_C_EXAMPLES=OFF \ - -D OPENCV_ENABLE_NONFREE=ON \ - -D OPENCV_EXTRA_MODULES_PATH=~/tmp/opencv_contrib/modules \ - -D PYTHON_EXECUTABLE=/usr/bin/python \ - -D BUILD_EXAMPLES=ON .. - - - -make -j4 - - -sudo make install - -echo "export PYTHONPATH=/usr/local/python:/usr/lib/python:\$PYTHONPATH" >> ~/.bashrc - - -sudo ldconfig - - - -sudo apt install python-pip - - -sudo -H pip install jupyter - -source ~/.bashrc -