how to configure Python, opencv and numpy

Thread Starter

ep.hobbyiest

Joined Aug 26, 2014
201
Hi,

I got stuck while starting up with python.
i installed python version 2.7, opencv version 3.0 and numpy version 1.7.1.

i start one simple program to show image as follows

Code:
########################################
## Import of the image

#import numpy
import cv2
########################################

########################################
## read image
img = cv2.imread('test.jpg')

########################################


########################################
## imshow

cv2.imshow('image',img)
########################################

########################################
## close and exit

cv2.waitKey(0)
cv2.destroyAllWindows()
########################################
after start to run he gives me error as

RuntimeError: module compiled against API version 9 but this version of numpy is 7

Traceback (most recent call last):
File "E:\python\imshow.py", line 5, in <module>
import cv2
ImportError: numpy.core.multiarray failed to import
 
Top