I have built successfully OpenCV 3.2 with the extra modules contribution successfully on Ubuntu. However, I'm having an error when building a code that uses (TrackerKCF::MODE), although this code was compiled successfully on Windows. Is there some syntax or includes I need to change or add?
Error Message:
(error: ‘cv::TrackerKCF::MODE’ is not a class or namespace
param.desc_pca = TrackerKCF::MODE::CN | TrackerKCF::MODE::GRAY;
)
Include List:
#include <iostream>
#include <string>
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <opencv2/video/video.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/utility.hpp>
#include <opencv2/tracking.hpp>
#include <opencv2/videoio.hpp>
#include <cstdio>
#include <fstream>
#include <sstream>
#include<math.h>
#include<time.h>