-
-
Save malefs/7da6bfc33e720bcceb2f1a4525864451 to your computer and use it in GitHub Desktop.
Revisions
-
jwpleow revised this gist
Feb 20, 2021 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -49,17 +49,17 @@ sudo -H pip3 install -U pip numpy # install cd /home/${SUDO_USER} wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip mv opencv-${OPENCV_VERSION} OpenCV_install # opencv contrib mods wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip mv opencv_contrib-${OPENCV_VERSION} OpenCV_install cd OpenCV_install mkdir build cd build echo -e "cmake.....\n" -
jwpleow revised this gist
Feb 20, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -48,7 +48,7 @@ sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy # install cd /home/${SUDO_USER} mkdir OpenCV wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip @@ -59,7 +59,7 @@ wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip mv opencv_contrib-${OPENCV_VERSION} OpenCV cd OpenCV mkdir build cd build echo -e "cmake.....\n" -
jwpleow revised this gist
Feb 20, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -59,7 +59,7 @@ wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip mv opencv_contrib-${OPENCV_VERSION} OpenCV cd ~/OpenCV mkdir build cd build echo -e "cmake.....\n" -
jwpleow revised this gist
Feb 20, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -64,7 +64,7 @@ mkdir build cd build echo -e "cmake.....\n" cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DWITH_V4L=ON -DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_GSTREAMER=ON\ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-${OPENCV_VERSION}/modules .. echo -e "make.....\n" make -j$(nproc) -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 8 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,14 @@ # remember to launch this with sudo so that sudo does not time out halfway OPENCV_VERSION='4.5.1' # Version to be installed #note this install script is without cuda if [ `whoami` != 'root' ]; then echo "This program needs to be run using 'sudo'" exit fi sudo apt -y update sudo apt-get -y remove x264 libx264-dev ## Install dependencies -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 17 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ #note this is without cuda sudo apt -y update OPENCV_VERSION='4.5.1' # Version to be installed @@ -7,19 +9,19 @@ sudo apt-get -y remove x264 libx264-dev ## Install dependencies sudo apt-get -y install build-essential checkinstall cmake pkg-config yasm sudo apt-get -y install git gfortran sudo apt-get -y install libgtk2.0-dev libtbb-dev qt5-default libvtk6-dev # the good stuff sudo apt install -y libatlas3-base libatlas-base-dev sudo apt install -y liblapacke-dev # lame codecs and stuff sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev sudo apt-get -y install libxine2-dev libv4l-dev sudo apt-get -y install zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libopenexr-dev libgdal-dev sudo apt-get -y install libjpeg8-dev libjasper-dev libpng12-dev sudo apt-get -y install libtiff5-dev sudo apt-get -y install libtiff-dev sudo apt-get -y install libmp3lame-dev libtheora-dev sudo apt-get -y install libvorbis-dev libxvidcore-dev libx264-dev sudo apt-get -y install libopencore-amrnb-dev libopencore-amrwb-dev @@ -31,6 +33,11 @@ sudo apt-get -y install doxygen unzip wget sudo apt-get -y install libprotobuf-dev protobuf-compiler sudo apt-get -y install libgoogle-glog-dev libgflags-dev sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen # gstreamer sudo apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-pulseaudio libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev # tesseract sudo apt-get install -y tesseract-ocr libtesseract-dev libleptonica-dev # structure from motion module requires ceres - https://github.com/opencv/opencv_contrib/blob/master/modules/sfm/README.md sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy @@ -52,7 +59,7 @@ mkdir build cd build echo -e "cmake.....\n" cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DWITH_V4L=ON -DBUILD_PROTOBUF=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_GSTREAMER=ON\ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-${OPENCV_VERSION}/modules .. echo -e "make.....\n" make -j$(nproc) -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 10 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,3 @@ sudo apt -y update OPENCV_VERSION='4.5.1' # Version to be installed @@ -9,19 +7,19 @@ sudo apt-get -y remove x264 libx264-dev ## Install dependencies sudo apt-get -y install build-essential checkinstall cmake pkg-config yasm sudo apt-get -y install git gfortran sudo apt-get -y install libjpeg8-dev libjasper-dev libpng12-dev sudo apt-get -y install libtiff5-dev sudo apt-get -y install libtiff-dev sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev sudo apt-get -y install libxine2-dev libv4l-dev sudo apt-get -y install zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev \ libopenexr-dev libgdal-dev sudo apt-get -y install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev sudo apt-get -y install libgtk2.0-dev libtbb-dev qt5-default libvtk6-dev sudo apt-get -y install libatlas-base-dev sudo apt-get -y install libmp3lame-dev libtheora-dev sudo apt-get -y install libvorbis-dev libxvidcore-dev libx264-dev sudo apt-get -y install libopencore-amrnb-dev libopencore-amrwb-dev @@ -33,11 +31,6 @@ sudo apt-get -y install doxygen unzip wget sudo apt-get -y install libprotobuf-dev protobuf-compiler sudo apt-get -y install libgoogle-glog-dev libgflags-dev sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy @@ -59,7 +52,7 @@ mkdir build cd build echo -e "cmake.....\n" cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DWITH_V4L=ON -DENABLE_PRECOMPILED_HEADERS=OFF \ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-${OPENCV_VERSION}/modules .. echo -e "make.....\n" make -j$(nproc) -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,8 +37,7 @@ sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen sudo apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-pulseaudio libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev # tesseract sudo apt-get install -y tesseract-ocr libtesseract-dev libleptonica-dev # structure from motion module requires ceres - https://github.com/opencv/opencv_contrib/blob/master/modules/sfm/README.md sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,7 @@ sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen # gstreamer sudo apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-pulseaudio libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev # tesseract sudo apt-get install -y tesseract-ocr libtesseract-dev libleptonica-dev @@ -60,7 +60,7 @@ mkdir build cd build echo -e "cmake.....\n" cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DWITH_V4L=ON -DBUILD_PROTOBUF=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_GSTREAMER=ON\ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-${OPENCV_VERSION}/modules .. echo -e "make.....\n" make -j$(nproc) -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,9 +33,12 @@ sudo apt-get -y install doxygen unzip wget sudo apt-get -y install libprotobuf-dev protobuf-compiler sudo apt-get -y install libgoogle-glog-dev libgflags-dev sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen # gstreamer sudo apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-pulseaudio libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev # tesseract sudo apt install -y tesseract-ocr sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 10 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,18 +9,19 @@ sudo apt-get -y remove x264 libx264-dev ## Install dependencies sudo apt-get -y install build-essential checkinstall cmake pkg-config yasm sudo apt-get -y install git gfortran sudo apt-get -y install libgtk2.0-dev libtbb-dev qt5-default libvtk6-dev # the good stuff sudo apt install -y libatlas3-base libatlas-base-dev sudo apt install -y liblapacke-dev # lame codecs and stuff sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev sudo apt-get -y install libxine2-dev libv4l-dev sudo apt-get -y install zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libopenexr-dev libgdal-dev sudo apt-get -y install libjpeg8-dev libjasper-dev libpng12-dev sudo apt-get -y install libtiff5-dev sudo apt-get -y install libtiff-dev sudo apt-get -y install libmp3lame-dev libtheora-dev sudo apt-get -y install libvorbis-dev libxvidcore-dev libx264-dev sudo apt-get -y install libopencore-amrnb-dev libopencore-amrwb-dev @@ -33,7 +34,7 @@ sudo apt-get -y install libprotobuf-dev protobuf-compiler sudo apt-get -y install libgoogle-glog-dev libgflags-dev sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen # gstreamer sudo apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-pulseaudio libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev sudo apt-get -y install python3-dev python3-pip -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,7 +34,7 @@ sudo apt-get -y install libgoogle-glog-dev libgflags-dev sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen sudo apt install -y liblapacke-dev sudo apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-pulseaudio libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,7 +34,7 @@ sudo apt-get -y install libgoogle-glog-dev libgflags-dev sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen sudo apt install -y liblapacke-dev sudo apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio libgstreamer1.0-dev gstreamer-base1.0-dev libgstreamer-plugins-base1.0-dev sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ #note this is without cuda sudo apt -y update OPENCV_VERSION='4.5.1' # Version to be installed @@ -17,9 +19,8 @@ sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394- sudo apt-get -y install libxine2-dev libv4l-dev sudo apt-get -y install zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev \ libopenexr-dev libgdal-dev sudo apt-get -y install libgtk2.0-dev libtbb-dev qt5-default libvtk6-dev sudo apt install -y libatlas3-base libatlas-base-dev sudo apt-get -y install libmp3lame-dev libtheora-dev sudo apt-get -y install libvorbis-dev libxvidcore-dev libx264-dev sudo apt-get -y install libopencore-amrnb-dev libopencore-amrwb-dev @@ -32,6 +33,9 @@ sudo apt-get -y install libprotobuf-dev protobuf-compiler sudo apt-get -y install libgoogle-glog-dev libgflags-dev sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen sudo apt install -y liblapacke-dev sudo apt install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy @@ -52,7 +56,7 @@ mkdir build cd build echo -e "cmake.....\n" cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DWITH_V4L=ON -DENABLE_PRECOMPILED_HEADERS=OFF -DWITH_GSTREAMER=ON\ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-${OPENCV_VERSION}/modules .. echo -e "make.....\n" make -j$(nproc) -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -53,7 +53,7 @@ cd build echo -e "cmake.....\n" cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DWITH_V4L=ON -DENABLE_PRECOMPILED_HEADERS=OFF \ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-${OPENCV_VERSION}/modules .. echo -e "make.....\n" make -j$(nproc) echo -e "make install.....\n" -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,7 +37,7 @@ sudo -H pip3 install -U pip numpy # install cd ~ mkdir OpenCV wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip mv opencv-${OPENCV_VERSION} OpenCV -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,12 +35,9 @@ sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy # install cd ~ wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip mv opencv-${OPENCV_VERSION} OpenCV -
jwpleow revised this gist
Feb 19, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ sudo apt -y update OPENCV_VERSION='4.5.1' # Version to be installed sudo apt-get -y remove x264 libx264-dev -
jwpleow revised this gist
Feb 12, 2021 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -53,13 +53,15 @@ mv opencv_contrib-${OPENCV_VERSION} OpenCV cd OpenCV mkdir build cd build echo -e "cmake.....\n" cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DWITH_V4L=ON -DENABLE_PRECOMPILED_HEADERS=OFF \ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules .. echo -e "make.....\n" make -j$(nproc) echo -e "make install.....\n" sudo make install echo -e "ldconfig.....\n" sudo ldconfig # echo "sudo modprobe bcm2835-v4l2" >> ~/.profile for Raspi to work with VideoCapture(0)? -
jwpleow revised this gist
Feb 11, 2021 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -60,4 +60,6 @@ cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON make -j$(nproc) sudo make install sudo ldconfig # echo "sudo modprobe bcm2835-v4l2" >> ~/.profile for Raspi to work with VideoCapture(0)? -
jwpleow revised this gist
Feb 11, 2021 . 1 changed file with 8 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -38,23 +38,26 @@ sudo -H pip3 install -U pip numpy # install cd ~ wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip mv opencv-${OPENCV_VERSION} OpenCV # opencv contrib mods wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip mv opencv_contrib-${OPENCV_VERSION} OpenCV cd OpenCV mkdir build cd build cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DWITH_V4L=ON -DENABLE_PRECOMPILED_HEADERS=OFF \ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules .. make -j$(nproc) sudo make install sudo ldconfig -
jwpleow revised this gist
Feb 10, 2021 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,8 @@ sudo apt-get -y install libtiff-dev sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev sudo apt-get -y install libxine2-dev libv4l-dev sudo apt-get -y install zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev \ libopenexr-dev libgdal-dev sudo apt-get -y install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev sudo apt-get -y install libgtk2.0-dev libtbb-dev qt5-default libvtk6-dev sudo apt-get -y install libatlas-base-dev @@ -24,6 +25,7 @@ sudo apt-get -y install libvorbis-dev libxvidcore-dev libx264-dev sudo apt-get -y install libopencore-amrnb-dev libopencore-amrwb-dev sudo apt-get -y install libavresample-dev sudo apt-get -y install x264 v4l-utils sudo apt-get -y install doxygen unzip wget # Optional dependencies sudo apt-get -y install libprotobuf-dev protobuf-compiler @@ -56,5 +58,3 @@ cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON make -j${nproc) sudo make install sudo ldconfig -
jwpleow revised this gist
Feb 10, 2021 . 1 changed file with 6 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,12 +15,9 @@ sudo apt-get -y install libtiff-dev sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev sudo apt-get -y install libxine2-dev libv4l-dev sudo apt-get -y install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev sudo apt-get -y install libgtk2.0-dev libtbb-dev qt5-default libvtk6-dev sudo apt-get -y install libatlas-base-dev sudo apt-get -y install libmp3lame-dev libtheora-dev sudo apt-get -y install libvorbis-dev libxvidcore-dev libx264-dev @@ -53,9 +50,11 @@ mkdir build cd build cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DWITH_V4L=ON -DENABLE_PRECOMPILED_HEADERS=OFF \ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules .. make -j${nproc) sudo make install sudo ldconfig # possibly for raspi to get videocapture(0) - echo "sudo modprobe bcm2835-v4l2" >> ~/.profile -
jwpleow created this gist
Feb 10, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,61 @@ sudo apt -y update OPENCV_VERSION='4.2.0' # Version to be installed sudo apt-get -y remove x264 libx264-dev ## Install dependencies sudo apt-get -y install build-essential checkinstall cmake pkg-config yasm sudo apt-get -y install git gfortran sudo apt-get -y install libjpeg8-dev libjasper-dev libpng12-dev sudo apt-get -y install libtiff5-dev sudo apt-get -y install libtiff-dev sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev sudo apt-get -y install libxine2-dev libv4l-dev cd /usr/include/linux sudo ln -s -f ../libv4l1-videodev.h videodev.h cd $cwd sudo apt-get -y install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev sudo apt-get -y install libgtk2.0-dev libtbb-dev qt5-default sudo apt-get -y install libatlas-base-dev sudo apt-get -y install libmp3lame-dev libtheora-dev sudo apt-get -y install libvorbis-dev libxvidcore-dev libx264-dev sudo apt-get -y install libopencore-amrnb-dev libopencore-amrwb-dev sudo apt-get -y install libavresample-dev sudo apt-get -y install x264 v4l-utils # Optional dependencies sudo apt-get -y install libprotobuf-dev protobuf-compiler sudo apt-get -y install libgoogle-glog-dev libgflags-dev sudo apt-get -y install libgphoto2-dev libeigen3-dev libhdf5-dev doxygen sudo apt-get -y install python3-dev python3-pip sudo -H pip3 install -U pip numpy # install mkdir ~/opencv_install cd ~/opencv_install wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip # opencv contrib mods wget https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip unzip ${OPENCV_VERSION}.zip && rm ${OPENCV_VERSION}.zip mv opencv_contrib-${OPENCV_VERSION} opencv_contrib mkdir build cd build cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON \ -DWITH_XINE=ON -DENABLE_PRECOMPILED_HEADERS=OFF \ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules .. make -j2 sudo make install sudo ldconfig