OpenCV 3.1.0 on python 3.5.1 with windows 7 64bit

asked 2015-12-29 09:12:12 -0600

Nandika gravatar image

Hello,

My OS is windows 7 64bit. Python version 3.5.1 OpenCV version 3.1.0

I use VisualEtudio 2013 as IDE. First,I installed Visual Studio and then installed python.then I used PTVS(Python Tools For Visual Studio). python is working properly with VisualStudio.But,I cant use OpenCV in python. When I tried to run a code, following error is given from VisualStudio.

image description

please help me to solve this problem and give me a suitable numpy link.

Thank in advance

edit retag flag offensive close merge delete

Comments

afaik, the prebuild cv2.pyd is for python2.7

if you need to run with python3, you will have to build opencv from src

(also, idk, if python3.5 is supported at all)

berak gravatar imageberak ( 2015-12-29 09:19:26 -0600 )edit

how to build opencv from src?

Nandika gravatar imageNandika ( 2015-12-29 09:29:27 -0600 )edit
Nandika gravatar imageNandika ( 2015-12-29 09:31:37 -0600 )edit

well, here's the opencv3 version , but in general, yes.

imho, you can cut most of the depedancies, the only essentials are cmake and numpy (pip install --upgrade numpy)

berak gravatar imageberak ( 2015-12-29 09:36:08 -0600 )edit