Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to configure the python, opencv

Status
Not open for further replies.

ep.hobbyiest

Full Member level 4
Joined
Jul 24, 2014
Messages
212
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Activity points
1,487
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
 

ep.hobbyiest

Full Member level 4
Joined
Jul 24, 2014
Messages
212
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Activity points
1,487
i tried after reinstalling it also, same error.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top