简体   繁体   English

在Windows上构建OpenCV 3.2和python绑定的问题

[英]Problems with building OpenCV 3.2 and python bindings on Windows

I am attempting to build OpenCV on Windows 10 with extra modules and python bindings (and thus following this guide ), and I'm running into some issues. 我正在尝试在Windows 10上使用额外的模块和python绑定构建OpenCV(并因此遵循本指南 ),但遇到了一些问题。 Firstly, I am only seeing a Visual Studio project called "opencv_python3" under the "bindings" folder, and not the project for python2. 首先,我仅在“ bindings”文件夹下看到一个名为“ opencv_python3”的Visual Studio项目,而不是python2的项目。 I am not seeing any errors related to this in CMake and filling in the appropriate variables for python 2 like I am with python 3. 我没有在CMake中看到与此相关的任何错误,也没有像我在使用python 3那样为python 2填写适当的变量。

I have solved the issue by installing Python 2.7 (64 bit). 我已经通过安装Python 2.7(64位)解决了这个问题。 I had previously been trying to install OpenCV with Python 2.7 (32 bit). 我以前一直尝试使用Python 2.7(32位)安装OpenCV。 I can't speak to whether or not it is possible to install OpenCV 3.2 with Python 2.7 (32 bit) bindings, but making this change did work for me . 我无法确定是否可以使用Python 2.7(32位)绑定安装OpenCV 3.2,但是进行此更改确实对我有用

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

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