0

So i am really new to openCV and all the image recognition stuff. So i use monodevelop and i installed OpenCV using apt-getand i included these files

include "opencv2/highgui/highgui.hpp" include "opencv2/imgproc/imgproc.hpp" include <opencv2/opencv.hpp> include <opencv2/imgproc/imgproc.hpp> include<iostream> include<vector> include<algorithm> include <X11/Xlib.h> include <X11/Xutil.h>

but this function convexityDefects() shows as undefined

EDIT

So the problem is that the compiler shows that function convexityDefects is not defined in this scope

Here is the full code that i cant get to work -> Code

Could you please point me out!? Thank you.

4

1 回答 1

0

所以我找到了我正在寻找的答案.....我用来编译我的项目的库在错误的位置。

所以我曾经pkg-config --libs --cflags opencv准确地找到我的库在哪里......

之后,我将这些库包含在内Code-Blocks,一切都神奇地开始工作。

于 2013-08-29T06:23:01.940 回答