Advertisement
Guest User

Untitled

a guest
May 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. # for youtube-dl use 2.4.13
  2. #Install bardcode-detector/resolver.
  3.  
  4. #wget http://173.230.150.21:8000/barcodedetect
  5.  
  6. #chmod +x barcodedetect
  7. #sudo mv barcodedetect /usr/local/bin/
  8.  
  9. #Remove all existing opencv packages
  10. # sudo find / -name "*opencv*" -exec rm -i -f {} \;
  11.  
  12. #Install opencv dependancies
  13.  
  14. sudo apt-get install --assume-yes build-essential cmake git
  15. sudo apt-get install --assume-yes pkg-config unzip ffmpeg qtbase5-dev python-dev python3-dev python-numpy python3-numpy
  16. sudo apt-get install --assume-yes libopencv-dev libgtk-3-dev libdc1394-22 libdc1394-22-dev libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev
  17. sudo apt-get install --assume-yes libavcodec-dev libavformat-dev libswscale-dev libxine2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
  18. sudo apt-get install --assume-yes libv4l-dev libtbb-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev
  19. sudo apt-get install --assume-yes libvorbis-dev libxvidcore-dev v4l-utils python-vtk
  20. sudo apt-get install --assume-yes liblapacke-dev libopenblas-dev checkinstall
  21. sudo apt-get install --assume-yes libgdal-dev
  22.  
  23. #Download and install opencv.
  24.  
  25. wget https://github.com/opencv/opencv/archive/3.2.0.zip
  26.  
  27. unzip 3.2.0.zip
  28.  
  29. rm 3.2.0.zip
  30.  
  31. cd opencv-3.2.0/
  32.  
  33. mkdir build
  34.  
  35. cd build/
  36.  
  37. cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D FORCE_VTK=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_CUBLAS=ON -D CUDA_NVCC_FLAGS="-D_FORCE_INLINES" -D WITH_GDAL=ON -D WITH_XINE=ON -D BUILD_EXAMPLES=ON ..
  38.  
  39. make -j $(($(nproc) + 1))
  40. sudo make install
  41.  
  42. sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
  43.  
  44. sudo ldconfig
  45.  
  46. sudo apt-get update
  47.  
  48. echo "Please reboot for your changes to take effect "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement