简体   繁体   English

我如何安装OpenCV?

[英]How do i install OpenCV?

Im trying to install OpenCV package for Python on my debian. 我试图在我的debian上安装Python的OpenCV包。 I ran sudo apt-get install python-opencv and accepted it. 我运行了sudo apt-get install python-opencv并接受了它。

But when I import cv my application says that there is no module named cv :( 但是当我import cv我的应用程序说没有module named cv :(

import cv was fetched from a tutorial. import cv是从教程中获取的。 What is the correct syntax? 什么是正确的语法?

I haven't done any developments on python but try to follow this tutorials I hope you may be able to identify the reason. 我没有在python上做任何开发,但尝试按照本教程,我希望你能够找出原因。

http://www.neuroforge.co.uk/index.php/getting-started-with-python-a-opencv http://www.neuroforge.co.uk/index.php/getting-started-with-python-a-opencv

The correct import is 正确的导入是

import cv2

Also, I've been doing a lot of opencv in python this month, and found this was a great tutorial for getting started: http://trevorappleton.blogspot.com/2013/11/python-getting-started-with-opencv.html 此外,我本月在python中做了很多opencv,发现这是一个很好的入门教程: http//trevorappleton.blogspot.com/2013/11/python-getting-started-with-opencv html的

Just execute below command line after activating your virtual environment :-> 只需在激活虚拟环境后执行以下命令行: - >

pip install opencv-python

enjoy computer-vision..... 享受计算机视觉.....

“A lot of the future of search is going to be about pictures. “很多搜索的未来都将与图片有关。 Computer vision technology is going to be a big deal” Ben Silbermann 计算机视觉技术将是一个大问题“ Ben Silbermann

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM