Skip to content

Instantly share code, notes, and snippets.

@shigengtian
Last active January 21, 2020 13:42
Show Gist options
  • Save shigengtian/de15baa5dce4dd5ecb4f001c02081bf4 to your computer and use it in GitHub Desktop.
Save shigengtian/de15baa5dce4dd5ecb4f001c02081bf4 to your computer and use it in GitHub Desktop.
opencv with cuda

install pacage

sudo apt install python3-dev python3-pip gcc-6 g++-6 cmake build-essential git pkg-config ccache \
unzip ecm extra-cmake-modules mesa-utils libgtk-3-dev ffmpeg \
libavcodec-dev libavformat-dev libswscale-dev libtbb-dev libogre-1.9-dev \
libjpeg-dev libpng-dev libtiff5-dev x264 libxvidcore-dev yasm \
libxine2-dev libv4l-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev \
libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev \
x264 v4l-utils ffmpeg libdc1394-22 libdc1394-22-dev libtiff5-dev \
qt5-default libeigen3-dev libeigen3-doc tesseract-ocr tesseract-ocr-jpn \
vtk7 tcl-vtk7 python3-vtk7 libgflags-dev autoconf automake libtool \
autoconf-archive libleptonica-dev libtesseract-dev gphoto2 liblapacke-dev 

install numpy

pip3 install numpy

opencv download

cd ~/Downloads
git clone --depth=1 https://github.com/opencv/opencv.git
git clone --depth=1 https://github.com/opencv/opencv_contrib.git
cd opencv && mkdir build && cd build

Gstream

sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

cmake make sure info

cmake ../

make and install

make -j8
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment