Skip to content

Instantly share code, notes, and snippets.

@asssis
Last active January 20, 2019 02:23
Show Gist options
  • Save asssis/7878ba18328ada621d7f6f306a0f661c to your computer and use it in GitHub Desktop.
Save asssis/7878ba18328ada621d7f6f306a0f661c to your computer and use it in GitHub Desktop.
instalar o open cv
# instalar o python
# instalar o pip
-linux python2 => sudo apt install python-pip
-linux python3 => sudo apt install python3-pip
# atualizar o pip
- pip install --upgrade pip
- py [version] -m pip install opencv-python
- pip install opencv-python
Required build dependencies
We need CMake to configure the installation, GCC for compilation, Python-devel and Numpy for building Python bindings etc.
sudo apt-get install cmake
sudo apt-get install python-devel numpy
sudo apt-get install gcc gcc-c++
Next we need GTK support for GUI features, Camera support (v4l), Media Support (ffmpeg, gstreamer) etc.
sudo apt-get install gtk2-devel
sudo apt-get install ffmpeg-devel
sudo apt-get install gstreamer-plugins-base-devel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment