我尝试为SimlpeBlobTracker运行以下示例草图: https://github.com/spmallick/learnopencv/blob/master/BlobDetector/blob.cpp
但是,当我尝试运行程序时,
./track
它打破并返回:
OpenCV错误:未实现功能/功能() detectAndCompute,file /home/sixtimesseven/Desktop/opencv/opencv/modules/features2d/src/feature2d.cpp, 第144行 在抛出' cv :: Exception'的实例后终止调用 what():/ home /sixtimesseven /Desktop / opencv / opencv / modules /features2d / src / feature2d.cpp:144: 错误:(-213)函数detectAndCompute
我正在使用makefile进行编译:
CFLAGS = `pkg-config --cflags opencv`
LIBS = `pkg-config --libs opencv`
track : track.cpp
g++ $(CFLAGS) -o track track.cpp $(LIBS)
我正在运行Ubuntu 16和OpenCV 2.4。