Ask Your Question
0

Where is cv2.cv on CentOS6 installation ?

asked 2013-04-30 21:53:02 -0500

HDizzle gravatar image

I am installing SimpleCV on Centos6 x86-64 using the instructions on https://github.com/sightmachine/simplecv.

Specifically, this is what I am following:

sudo yum -y install python-ipython opencv-python scipy numpy pygame python-setuptools

python-pip git

git clone https://github.com/sightmachine/SimpleCV.git

cd SimpleCV/

sudo python setup.py install

After I do the following statements, errors result.

Statements:

python

import SimpleCV

Result:

ImportError: No module named cv2.cv

Ps. I have experience installing SimpleCV on Windows. Normally I would move the cv.py and cv2.pyd files from opencv>build>python>2.6 into the site-packages of python to get it to work.

However in this situation, on Centos, the file structure is different, (there's no build directory inside the opencv directory). Fortunately, I was able to find cv.py. It was already in site-packages. However I was unable to locate cv2.so anywhere.

I have three questions.

    1. Is there supposed to be a build directory inside of the opencv directory on CentOS6?
    2. If yes, what do you suggest I do to fix the problem?
    3. Do you know where I can find a pre-compiled version of cv2.so for CentOS6 x86_64?
    4. I am able to find cv.so , _cv.so but no cv2.so . Do you suggest going into the SimpleCV base.py file (line 54) editing it so it says:
    import cv
    *instead of*
    import cv2.cv as cv
    Is that a good idea ?
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-05-01 05:58:14 -0500

I had the same problem as the OP, but on Windows 7 64-bit. I was using OpenCV2.3. I managed to fix the problem by installing OpenCV2.4.5 and building it from scratch, as suggested by the poster above me.

Hope this helps!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-04-30 21:53:02 -0500

Seen: 2,613 times

Last updated: May 01 '13