Ask Your Question

YuriiChernyshov's profile - activity

2020-06-22 12:46:35 -0500 commented question OpenCV 4.3.0 can not detect CUDA 10.2

Oh ... so silly :-( Missed -D WITH_CUDA=ON, one small mistake and set up screwed. Thanks a lot!

2020-06-19 22:26:25 -0500 received badge  Student (source)
2020-06-19 07:56:26 -0500 received badge  Editor (source)
2020-06-19 07:56:26 -0500 edited question OpenCV 4.3.0 can not detect CUDA 10.2

OpenCV 4.3.0 can not detect CUDA 10.2 To start with, it might be not OpenCV related, but I found OpnCV is the one that d

2020-06-19 07:31:35 -0500 asked a question OpenCV 4.3.0 can not detect CUDA 10.2

OpenCV 4.3.0 can not detect CUDA 10.2 To start with, it might be not OpenCV related, but I found OpnCV is the one that d

2019-07-21 09:35:41 -0500 commented answer How to run OpenCV DNN on NVidia GPU

I use OpenCV 4.1.1 on Nvidia Tegra Nano compiled with CUDA support. I compiled Darknet with CUDA and cuDNN support as we

2019-07-21 09:21:28 -0500 commented answer How to run OpenCV DNN on NVidia GPU

I use OpenCV 4.1.1 on Nvidia Tegra Nano compiled with CUDA support. I compiled Darknet with CUDA and cuDNN support as we

2019-01-21 06:58:17 -0500 received badge  Popular Question (source)
2017-03-19 21:37:30 -0500 commented question Failed to build OpenCV for Android 2.4.11 under Ubuntu 16.04

Did you find a solution so far?

2017-03-16 17:16:33 -0500 received badge  Enthusiast
2017-03-09 11:17:33 -0500 commented question undefined reference to `cv::xfeatures2d::SURF::create(double, int, int, bool, bool)'

Ok, I solved the issue. I install again version 3.2 and then invoked:

sudo make uninstall

Then did the same for version 3.1 Then ran:

sudo apt-get purge libopencv*

Then, when everything was cleaned, I installed version 3.2 from scratch including contrib lib. Everything works fine now :-)

2017-03-09 09:50:05 -0500 commented question undefined reference to `cv::xfeatures2d::SURF::create(double, int, int, bool, bool)'

It was OFF. However, I set it to ON and still have the same issue. Here is how I handled it:

set(OPENCV_ENABLE_NONFREE "Enable non-free algorithms" ON)

if(OPENCV_ENABLE_NONFREE)
    message("  Non-free algorithms are enabled")
else()
    message("  Non-free algorithms are NOT enabled")
endif()
2017-03-09 09:01:25 -0500 asked a question undefined reference to `cv::xfeatures2d::SURF::create(double, int, int, bool, bool)'

Hi,

I have updated OpenCV c++ recently from 3.1 to 3.2 version and getting next error while compile:

undefined reference to `cv::xfeatures2d::SURF::create(double, int, int, bool, bool)'

My cmake file:

cmake_minimum_required(VERSION 3.6)
project(OpenCVProject)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "-O3")
find_package(OpenCV REQUIRED)
set(SOURCE_FILES main.cpp SurfDetector.cpp SurfDetector.h ContoursDetector.cpp ContoursDetector.h)
add_executable(OpenCVProject ${SOURCE_FILES})
target_link_libraries(OpenCVProject ${OpenCV_LIBS})

And my header file is:

#include <stdio.h>
#include <iostream>
#include <opencv2/imgproc.hpp>
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/xfeatures2d.hpp"

using namespace cv;
using namespace std;
using namespace cv::xfeatures2d;

Code snippet that cause the error:

Ptr<SURF> detector = SURF::create(400, 4, 3, true, true);

I compiled OpenCV from source, but previously I compiled opencv-contrib library following instruction in their readmy, exactly the way I did for version 3.1.

The question is there a bug or changes in 3.2 that I am not aware of?

Thanks in advance.