Install OpenCV-Python in Ubuntu
Posted 小河沟大河沟
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Install OpenCV-Python in Ubuntu相关的知识,希望对你有一定的参考价值。
- 之前安装python版opencv,需要下载whl文件,进行安装
今天发现一个简单的方法。
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的主要内容,如果未能解决你的问题,请参考以下文章
could not find a writer for the specified extension in function ‘cv::imwrite_‘
opencv cv2.imread()报错: error: (-215:Assertion failed) !_src.empty() in function ‘cv::cvtColor‘