Difference between revisions of "OpenCV Installation"

From Interaction Station Wiki
Jump to navigation Jump to search
(Created page with "=== OpenCV installation in Ubuntu 16.04 === sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essential cmake pkg-config sudo apt-get install libjpeg8-de...")
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
=== OpenCV installation in Ubuntu 16.04 ===
 
=== OpenCV installation in Ubuntu 16.04 ===
 +
sudo apt-get install libopencv-dev
 +
 +
===Only if having opencv in the terminal is needed ===
 
  sudo apt-get update
 
  sudo apt-get update
 
  sudo apt-get upgrade
 
  sudo apt-get upgrade
Line 9: Line 12:
 
  sudo apt-get install libatlas-base-dev gfortran
 
  sudo apt-get install libatlas-base-dev gfortran
 
  sudo apt-get install python2.7-dev python3.5-dev
 
  sudo apt-get install python2.7-dev python3.5-dev
 +
sudo apt-get install pkg-config
 +
pip install opencv-python
 +
sudo apt-get install apt-file
 +
pip install opencv-contrib-python
 +
sudo apt-get install python-opencv
 +
sudo apt-get install libopencv-dev
 +
apt-file search opencv.pc
 +
Use the output path for
 +
export PKG_CONFIG_PATH=/path/to/the/file
  
*Guide:
+
[[Category:AI & Machine Learning]]
*https://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/
 

Latest revision as of 16:41, 22 November 2022

OpenCV installation in Ubuntu 16.04

sudo apt-get install libopencv-dev

Only if having opencv in the terminal is needed

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential cmake pkg-config
sudo apt-get install libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev
sudo apt-get install libgtk-3-dev
sudo apt-get install libatlas-base-dev gfortran
sudo apt-get install python2.7-dev python3.5-dev
sudo apt-get install pkg-config
pip install opencv-python
sudo apt-get install apt-file 
pip install opencv-contrib-python
sudo apt-get install python-opencv
sudo apt-get install libopencv-dev
apt-file search opencv.pc
Use the output path for
export PKG_CONFIG_PATH=/path/to/the/file