I just use
#include <opencv2/opencv.hpp>
and things worked. May I asked why we should do like:
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
And why here are *.hpp files but not *.h files?
Excuse me for asking for such simple questions.