2019-10-13 16:19:23 -0600 | received badge | ● Popular Question (source) |
2015-03-16 06:11:44 -0600 | asked a question | Making SURF working on UBUNTU 14.04 in c Hi everybody, I'm currently working on my master thesis and I need to do some feature detection. For that purpose I would like to use the cvExtractSURF function. As the title says, I'm working on Ubuntu 14.04 and my code is written in c (not c++). I've installed opencv 2.4.11 following this tutorial. My code is the following: I've already tried many proposed solutions as this one or that one. As you can see, I already tried to link the nonfree librairies. /nonfree.hpp is commented, if not I get the following error:/usr/local/include/opencv2/nonfree/nonfree.hpp:48:1: error: unknown type name ‘namespace’ namespace cv. I think it has something to do with the fact I'm coding in c and not c++. I did my best to install the nonfree librairies. In my /home/xxx/opencv-2.4.11/build/lib folder, I've got the following lib files (related to the nonfree lib): 1) libopencv_nonfree.so 2) libopencv_nonfree.so.2.4 3) libopencv_nonfree.so.2.4.11 Result when I make openCV: OpenCV modules: -- To be built: core flann imgproc highgui features2d calib3d ml video legacy objdetect photo gpu ocl nonfree contrib java python stitching superres ts videostab viz When I try to make my main.c with the following makefile: I still get the error OpenCV Error: The function/feature is not implemented (OpenCV was built without SURF support) in cvExtractSURF, file /home/xxx/opencv-2.4.11/modules/legacy/src/features2d.cpp, line 77 terminate called after throwing an instance of 'cv::Exception'. Can somebody help me ? I REALLY need to make it work for my thesis. Already lost 3 days to find a solution (and btw I'm quite new to linux OS...) Thanks in advance for your help! |
2015-03-12 03:47:11 -0600 | commented answer | What are the SURF support restrictions? Hi, how do you call the cv::initModule_nonfree(); in c and not c++ ? Where should I call it ? In my project ? Thanks for your help ! |
2015-03-12 03:41:36 -0600 | commented answer | What are the SURF support restrictions? Hi, what do you mean by "build the app with static libraries that I built from source" ? Where is located your libopencv_nonfree.a ? In my folder /open_cv-2.4.11/build/lib I have the following files : libopencv_nonfree.so, libopencv_nonfree.so.2.4, libopencv_nonfree.so.2.4.11, libopencv_nonfree_pch_dephelp.a. And what do you mean by move the libopencv_nonfree.a to the front ? Where ? thank you in advance, it's been 2 days I've been searching a solution ! |