How to import cv2 in python project “Visual Studio 2015”?

丶灬走出姿态 提交于 2020-01-24 20:13:33

问题


I would like to start with OpenCV . I followed some tutorials for installing OpenCV in Windows.

After downloading and extracting OpenCV

First, I create environment variable and path

Then I moved to python in Visual Studio. I installed python and I started with a very simple tutorial, but I faced some problems with python.

  1. First problem was with numpy module was not found. solved

  2. cv2 error I couldn't solved it, I followed instruction said that I need copy cv2.pyd file in ..\Python34\Lib\site-packages

afterword I tried to >>> import cv2

but I got this error

Thanks for all of you.

来源:https://stackoverflow.com/questions/39460015/how-to-import-cv2-in-python-project-visual-studio-2015

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!