Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get install build-essential cmake pkg-config
- apt-get install libjpeg-dev libtiff-dev
- apt-get install libjasper-dev libpng12-dev (Not Found)
- apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
- apt-get install libxvidcore-dev libx264-dev
- apt-get install libgtk2.0-dev libgtk-3-dev
- apt-get install libatlas-base-dev gfortran
- apt-get install python3-dev
- apt-get install python3-pip
- wget -O opencv.zip https://github.com/opencv/opencv/archive/4.0.0.zip
- wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.0.0.zip
- unzip opencv.zip
- unzip opencv_contrib.zip
- mv opencv_contrib-4.0.0 opencv_contrib
- mv opencv-4.0.0 opencv
- sudo pip3 install numpy scipy
- cd ~/opencv/
- mkdir build
- cd build
- cmake -D CMAKE_BUILD_TYPE=RELEASE \
- -D CMAKE_INSTALL_PREFIX=/usr/local \
- -D INSTALL_PYTHON_EXAMPLES=ON \
- -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
- -D ENABLE_NEON=ON \
- -D ENABLE_VFPV3=ON \
- -D WITH_FFMPEG=ON \
- -D WITH_GSTREAMER=ON \
- -D OPENCV_ENABLE_NONFREE=ON \
- -D BUILD_EXAMPLES=ON ..
- make -j4
- sudo make install
- sudo ldconfig
- sudo apt-get update
- python
- import cv2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement