Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Python OpenCV installation in ubuntu 12.04 - How to access FAST,SURF etc

Hi all, I downloaded opencv 2.4.9 and managed to get Python2.7 up and running with opencv. But when I checked the version using

import cv
cv2.__version__

I got

$Rev: 4557 $'

From what I read on other threads, this is an old version and I can also see that the interpreter is using opencv-2.3.1 for some reason. So I don't have FAST,SURF and all those goodies.

I used the following build command from this site https://www.raben.com/book/export/html/3

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local
-D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON 
-D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON 
-D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..

This question is very similar to my problem http://stackoverflow.com/questions/18561910/opencv-python-cant-use-surf-sift

But I don't have the old 2.4.6 installation suggested and would also like to use a newer version if possible.

Already spent a good bit of time trying to fix this but with no success. Any help would be much appreciated!

Thanks, Ronen