1. 程式人生 > >Install OpenCV-Python in Ubuntu

Install OpenCV-Python in Ubuntu

ocs pri n) owin http use ubuntu have rmi

  • 之前安裝python版opencv,需要下載whl文件,進行安裝
  • 今天發現一個簡單的方法。

  • Install OpenCV-Python in Ubuntu

Install package python-opencv with following command in terminal (as root user).
$ sudo apt-get install python-opencv

Open Python IDLE (or IPython) and type following codes in Python terminal.
import cv2 as cv
print(cv.__version__)

If the results are printed out without any errors, congratulations !!! You have installed OpenCV-Python successfully.

Install OpenCV-Python in Ubuntu