Install OpenCV-Python on Ubuntu18.04

文章目录

  • OpenCV-python
    • 1 Pip / Pip3
    • 2 OpenCV
    • 3 Reference

OpenCV-python

1 Pip / Pip3

$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt-get install wget git
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python3 get-pip.py    # for pip3
$ sudo python2.7 get-pip.py  # for pip

2 OpenCV

$ sudo apt install libopencv-dev
$ sudo pip3 install opencv-python==版本号 # for Python3
$ sudo pip install opencv-python==版本号  # for Python2

3 Reference

  • Ubuntu18.04安装python3下的opencv
  • Ubuntu 18.04: How to install OpenCV
  • OpenCV2.4.13.6 Installation in Linux

你可能感兴趣的:(OpenCV)