ObjLeft icon indicating copy to clipboard operation
ObjLeft copied to clipboard

The code fails to run

Open karthikbhat1994 opened this issue 9 years ago • 10 comments

the code provide, does not run, and gives me a list of errors, which gives a path to the library files. Please help me out. It would be really helpful. following are the errors which i'm getting.

Scanning dependencies of target ObjLeft [ 14%] Building CXX object CMakeFiles/ObjLeft.dir/main.cpp.o In file included from /home/karthik/OpenCV/ObjLeft-master/opencvheader.h:7:0, from /home/karthik/OpenCV/ObjLeft-master/VideoDetails.h:4, from /home/karthik/OpenCV/ObjLeft-master/CBM_model.h:1, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:4, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/include/opencv2/gpu/gpu.hpp:432:29: error: ‘vector’ does not name a type CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null()); ^ /usr/include/opencv2/gpu/gpu.hpp:432:35: error: expected ‘,’ or ‘...’ before ‘<’ token CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null()); ^ /usr/include/opencv2/gpu/gpu.hpp:438:42: error: ‘vector’ has not been declared CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null()); ^ /usr/include/opencv2/gpu/gpu.hpp:438:48: error: expected ‘,’ or ‘...’ before ‘<’ token CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null()); ^ /usr/include/opencv2/gpu/gpu.hpp:1265:4: error: ‘vector’ does not name a type vector<Point> locations; ^ /usr/include/opencv2/gpu/gpu.hpp:1266:4: error: ‘vector’ does not name a type vector confidences; ^ /usr/include/opencv2/gpu/gpu.hpp:1267:4: error: ‘vector’ does not name a type vector part_scores[4]; ^ /usr/include/opencv2/gpu/gpu.hpp:1285:31: error: ‘vector’ does not name a type void setSVMDetector(const vector& detector); ^ /usr/include/opencv2/gpu/gpu.hpp:1285:37: error: expected ‘,’ or ‘...’ before ‘<’ token void setSVMDetector(const vector& detector); ^ /usr/include/opencv2/gpu/gpu.hpp:1287:12: error: ‘vector’ does not name a type static vector getDefaultPeopleDetector(); ^ /usr/include/opencv2/gpu/gpu.hpp:1288:12: error: ‘vector’ does not name a type static vector getPeopleDetector48x96(); ^ /usr/include/opencv2/gpu/gpu.hpp:1289:12: error: ‘vector’ does not name a type static vector getPeopleDetector64x128(); ^ /usr/include/opencv2/gpu/gpu.hpp:1291:36: error: ‘vector’ has not been declared void detect(const GpuMat& img, vector<Point>& found_locations, ^ /usr/include/opencv2/gpu/gpu.hpp:1291:42: error: expected ‘,’ or ‘...’ before ‘<’ token void detect(const GpuMat& img, vector<Point>& found_locations, ^ /usr/include/opencv2/gpu/gpu.hpp:1295:46: error: ‘vector’ has not been declared void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations, ^ /usr/include/opencv2/gpu/gpu.hpp:1295:52: error: expected ‘,’ or ‘...’ before ‘<’ token void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations, ^ /usr/include/opencv2/gpu/gpu.hpp:1300:47: error: ‘vector’ has not been declared void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold, ^ /usr/include/opencv2/gpu/gpu.hpp:1300:53: error: expected ‘,’ or ‘...’ before ‘<’ token void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold, ^ /usr/include/opencv2/gpu/gpu.hpp:1303:57: error: ‘vector’ has not been declared void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations, ^ /usr/include/opencv2/gpu/gpu.hpp:1303:63: error: expected ‘,’ or ‘...’ before ‘<’ token void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations, ^ /usr/include/opencv2/gpu/gpu.hpp:1835:5: error: ‘vector’ does not name a type vector<GpuMat> prevPyr_; ^ /usr/include/opencv2/gpu/gpu.hpp:1836:5: error: ‘vector’ does not name a type vector<GpuMat> nextPyr_; ^ /usr/include/opencv2/gpu/gpu.hpp:1838:5: error: ‘vector’ does not name a type vector<GpuMat> buf_; ^ /usr/include/opencv2/gpu/gpu.hpp:1839:5: error: ‘vector’ does not name a type vector<GpuMat> unused; ^ In file included from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:4:0, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /home/karthik/OpenCV/ObjLeft-master/CBM_model.h:124:2: error: ‘CvLatentSvmDetector’ does not name a type CvLatentSvmDetector * detector; ^ /home/karthik/OpenCV/ObjLeft-master/main.cpp: In function ‘int main()’: /home/karthik/OpenCV/ObjLeft-master/main.cpp:120:25: warning: zero-length gnu_printf format string [-Wformat-zero-length] sprintf(test_video, ""); ^ /home/karthik/OpenCV/ObjLeft-master/main.cpp:124:25: warning: format ‘%s’ expects argument of type ‘char_’, but argument 2 has type ‘char ()[200]’ [-Wformat=] scanf("%s",&test_video); ^ /home/karthik/OpenCV/ObjLeft-master/main.cpp:137:27: error: no matching function for call to ‘cv::Mat::Mat(IplImage&, int)’ cv::Mat mat_myimg(myimg,0); ^ /home/karthik/OpenCV/ObjLeft-master/main.cpp:137:27: note: candidates are: In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:935:14: note: cv::Mat::Mat(const cv::cuda::GpuMat&) explicit Mat(const cuda::GpuMat& m); ^ /usr/local/include/opencv2/core/mat.hpp:935:14: note: candidate expects 1 argument, 2 provided /usr/local/include/opencv2/core/mat.hpp:932:37: note: template<class Tp> cv::Mat::Mat(const cv::MatCommaInitializer<_Tp>&) template<typename Tp> explicit Mat(const MatCommaInitializer<Tp>& commaInitializer); ^ /usr/local/include/opencv2/core/mat.hpp:932:37: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:137:27: note: mismatched types ‘const cv::MatCommaInitializer<Tp>’ and ‘IplImage {aka _IplImage*}’ cv::Mat mat_myimg(myimg,0); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:928:37: note: template<class Tp> cv::Mat::Mat(const cv::Point3<_Tp>&, bool) template<typename Tp> explicit Mat(const Point3<Tp>& pt, bool copyData=true); ^ /usr/local/include/opencv2/core/mat.hpp:928:37: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:137:27: note: mismatched types ‘const cv::Point3<_Tp>’ and ‘IplImage* {aka _IplImage*}’ cv::Mat mat_myimg(myimg,0); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:924:37: note: template<class Tp> cv::Mat::Mat(const cv::Point<_Tp>&, bool) template<typename Tp> explicit Mat(const Point<Tp>& pt, bool copyData=true); ^ /usr/local/include/opencv2/core/mat.hpp:924:37: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:137:27: note: mismatched types ‘const cv::Point<_Tp>’ and ‘IplImage* {aka IplImage}’ cv::Mat mat_myimg(myimg,0); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:920:51: note: template<class _Tp, int m, int n> cv::Mat::Mat(const cv::Matx<_Tp, m, n>&, bool) template<typename _Tp, int m, int n> explicit Mat(const Matx<_Tp, m, n>& mtx, bool copyData=true); ^ /usr/local/include/opencv2/core/mat.hpp:920:51: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:137:27: note: mismatched types ‘const cv::Matx<Tp, m, n>’ and ‘IplImage {aka IplImage}’ cv::Mat mat_myimg(myimg,0); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:916:44: note: template<class _Tp, int n> cv::Mat::Mat(const cv::Vec<Tp, m>&, bool) template<typename Tp, int n> explicit Mat(const Vec<Tp, n>& vec, bool copyData=true); ^ /usr/local/include/opencv2/core/mat.hpp:916:44: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:137:27: note: mismatched types ‘const cv::Vec<Tp, m>’ and ‘IplImage {aka IplImage}’ cv::Mat mat_myimg(myimg,0); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:912:37: note: template<class Tp> cv::Mat::Mat(const std::vector<Tp>&, bool) template<typename Tp> explicit Mat(const std::vector<Tp>& vec, bool copyData=false); ^ /usr/local/include/opencv2/core/mat.hpp:912:37: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:137:27: note: mismatched types ‘const std::vector<Tp>’ and ‘IplImage {aka IplImage}’ cv::Mat mat_myimg(myimg,0); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:894:5: note: cv::Mat::Mat(const cv::Mat&, const cv::Range) Mat(const Mat& m, const Range* ranges); ^ /usr/local/include/opencv2/core/mat.hpp:894:5: note: no known conversion for argument 1 from ‘IplImage* {aka IplImage}’ to ‘const cv::Mat&’ /usr/local/include/opencv2/core/mat.hpp:884:5: note: cv::Mat::Mat(const cv::Mat&, const Rect&) Mat(const Mat& m, const Rect& roi); ^ /usr/local/include/opencv2/core/mat.hpp:884:5: note: no known conversion for argument 1 from ‘IplImage {aka IplImage}’ to ‘const cv::Mat&’ /usr/local/include/opencv2/core/mat.hpp:874:5: note: cv::Mat::Mat(const cv::Mat&, const cv::Range&, const cv::Range&) Mat(const Mat& m, const Range& rowRange, const Range& colRange=Range::all()); ^ /usr/local/include/opencv2/core/mat.hpp:874:5: note: no known conversion for argument 1 from ‘IplImage {aka IplImage}’ to ‘const cv::Mat&’ /usr/local/include/opencv2/core/mat.hpp:862:5: note: cv::Mat::Mat(int, const int, int, void, const size_t) Mat(int ndims, const int* sizes, int type, void* data, const size_t* steps=0); ^ /usr/local/include/opencv2/core/mat.hpp:862:5: note: candidate expects 5 arguments, 2 provided In file included from /usr/local/include/opencv2/core/mat.hpp:3429:0, from /usr/local/include/opencv2/core.hpp:59, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.inl.hpp:438:1: note: cv::Mat::Mat(cv::Size, int, void, size_t) Mat::Mat(Size _sz, int type, void _data, size_t step) ^ /usr/local/include/opencv2/core/mat.inl.hpp:438:1: note: candidate expects 4 arguments, 2 provided /usr/local/include/opencv2/core/mat.inl.hpp:405:1: note: cv::Mat::Mat(int, int, int, void, size_t) Mat::Mat(int _rows, int _cols, int type, void _data, size_t step) ^ /usr/local/include/opencv2/core/mat.inl.hpp:405:1: note: candidate expects 5 arguments, 2 provided /usr/local/include/opencv2/core/mat.inl.hpp:386:1: note: cv::Mat::Mat(const cv::Mat&) Mat::Mat(const Mat& m) ^ /usr/local/include/opencv2/core/mat.inl.hpp:386:1: note: candidate expects 1 argument, 2 provided /usr/local/include/opencv2/core/mat.inl.hpp:377:1: note: cv::Mat::Mat(int, const int, int, const Scalar&) Mat::Mat(int dims, const int _sz, int _type, const Scalar& s) ^ /usr/local/include/opencv2/core/mat.inl.hpp:377:1: note: candidate expects 4 arguments, 2 provided /usr/local/include/opencv2/core/mat.inl.hpp:369:1: note: cv::Mat::Mat(int, const int, int) Mat::Mat(int dims, const int _sz, int _type) ^ /usr/local/include/opencv2/core/mat.inl.hpp:369:1: note: candidate expects 3 arguments, 2 provided /usr/local/include/opencv2/core/mat.inl.hpp:360:1: note: cv::Mat::Mat(cv::Size, int, const Scalar&) Mat::Mat(Size _sz, int _type, const Scalar& _s) ^ /usr/local/include/opencv2/core/mat.inl.hpp:360:1: note: candidate expects 3 arguments, 2 provided /usr/local/include/opencv2/core/mat.inl.hpp:343:1: note: cv::Mat::Mat(int, int, int, const Scalar&) Mat::Mat(int _rows, int _cols, int _type, const Scalar& _s) ^ /usr/local/include/opencv2/core/mat.inl.hpp:343:1: note: candidate expects 4 arguments, 2 provided /usr/local/include/opencv2/core/mat.inl.hpp:352:1: note: cv::Mat::Mat(cv::Size, int) Mat::Mat(Size _sz, int _type) ^ /usr/local/include/opencv2/core/mat.inl.hpp:352:1: note: no known conversion for argument 1 from ‘IplImage* {aka IplImage}’ to ‘cv::Size’ /usr/local/include/opencv2/core/mat.inl.hpp:335:1: note: cv::Mat::Mat(int, int, int) Mat::Mat(int _rows, int _cols, int type) ^ /usr/local/include/opencv2/core/mat.inl.hpp:335:1: note: candidate expects 3 arguments, 2 provided /usr/local/include/opencv2/core/mat.inl.hpp:329:1: note: cv::Mat::Mat() Mat::Mat() ^ /usr/local/include/opencv2/core/mat.inl.hpp:329:1: note: candidate expects 0 arguments, 2 provided /home/karthik/OpenCV/ObjLeft-master/main.cpp:184:17: error: no matching function for call to ‘cv::Mat::Mat(IplImage&)’ Mat _qImg(qImg); ^ /home/karthik/OpenCV/ObjLeft-master/main.cpp:184:17: note: candidates are: In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:935:14: note: cv::Mat::Mat(const cv::cuda::GpuMat&) explicit Mat(const cuda::GpuMat& m); ^ /usr/local/include/opencv2/core/mat.hpp:935:14: note: no known conversion for argument 1 from ‘IplImage* {aka _IplImage*}’ to ‘const cv::cuda::GpuMat&’ /usr/local/include/opencv2/core/mat.hpp:932:37: note: template<class Tp> cv::Mat::Mat(const cv::MatCommaInitializer<_Tp>&) template<typename Tp> explicit Mat(const MatCommaInitializer<Tp>& commaInitializer); ^ /usr/local/include/opencv2/core/mat.hpp:932:37: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:184:17: note: mismatched types ‘const cv::MatCommaInitializer<_Tp>’ and ‘IplImage* {aka _IplImage*}’ Mat _qImg(qImg); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:928:37: note: template<class Tp> cv::Mat::Mat(const cv::Point3<_Tp>&, bool) template<typename Tp> explicit Mat(const Point3<Tp>& pt, bool copyData=true); ^ /usr/local/include/opencv2/core/mat.hpp:928:37: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:184:17: note: mismatched types ‘const cv::Point3<_Tp>’ and ‘IplImage* {aka _IplImage*}’ Mat _qImg(qImg); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:924:37: note: template<class Tp> cv::Mat::Mat(const cv::Point<_Tp>&, bool) template<typename Tp> explicit Mat(const Point<Tp>& pt, bool copyData=true); ^ /usr/local/include/opencv2/core/mat.hpp:924:37: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:184:17: note: mismatched types ‘const cv::Point<_Tp>’ and ‘IplImage* {aka IplImage}’ Mat _qImg(qImg); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:920:51: note: template<class _Tp, int m, int n> cv::Mat::Mat(const cv::Matx<_Tp, m, n>&, bool) template<typename _Tp, int m, int n> explicit Mat(const Matx<_Tp, m, n>& mtx, bool copyData=true); ^ /usr/local/include/opencv2/core/mat.hpp:920:51: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:184:17: note: mismatched types ‘const cv::Matx<Tp, m, n>’ and ‘IplImage {aka IplImage}’ Mat _qImg(qImg); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:916:44: note: template<class _Tp, int n> cv::Mat::Mat(const cv::Vec<_Tp, m>&, bool) template<typename _Tp, int n> explicit Mat(const Vec<_Tp, n>& vec, bool copyData=true); ^ /usr/local/include/opencv2/core/mat.hpp:916:44: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:184:17: note: mismatched types ‘const cv::Vec<Tp, m>’ and ‘IplImage {aka IplImage}’ Mat qImg(qImg); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:912:37: note: template<class Tp> cv::Mat::Mat(const std::vector<Tp>&, bool) template<typename Tp> explicit Mat(const std::vector<Tp>& vec, bool copyData=false); ^ /usr/local/include/opencv2/core/mat.hpp:912:37: note: template argument deduction/substitution failed: /home/karthik/OpenCV/ObjLeft-master/main.cpp:184:17: note: mismatched types ‘const std::vector<Tp>’ and ‘IplImage {aka IplImage}’ Mat qImg(qImg); ^ In file included from /usr/local/include/opencv2/core.hpp:59:0, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.hpp:894:5: note: cv::Mat::Mat(const cv::Mat&, const cv::Range) Mat(const Mat& m, const Range* ranges); ^ /usr/local/include/opencv2/core/mat.hpp:894:5: note: candidate expects 2 arguments, 1 provided /usr/local/include/opencv2/core/mat.hpp:884:5: note: cv::Mat::Mat(const cv::Mat&, const Rect&) Mat(const Mat& m, const Rect& roi); ^ /usr/local/include/opencv2/core/mat.hpp:884:5: note: candidate expects 2 arguments, 1 provided /usr/local/include/opencv2/core/mat.hpp:874:5: note: cv::Mat::Mat(const cv::Mat&, const cv::Range&, const cv::Range&) Mat(const Mat& m, const Range& rowRange, const Range& colRange=Range::all()); ^ /usr/local/include/opencv2/core/mat.hpp:874:5: note: candidate expects 3 arguments, 1 provided /usr/local/include/opencv2/core/mat.hpp:862:5: note: cv::Mat::Mat(int, const int, int, void, const size_t) Mat(int ndims, const int sizes, int type, void* data, const size_t* steps=0); ^ /usr/local/include/opencv2/core/mat.hpp:862:5: note: candidate expects 5 arguments, 1 provided In file included from /usr/local/include/opencv2/core/mat.hpp:3429:0, from /usr/local/include/opencv2/core.hpp:59, from /usr/local/include/opencv2/opencv.hpp:46, from /home/karthik/OpenCV/ObjLeft-master/myDIP.h:22, from /home/karthik/OpenCV/ObjLeft-master/ObjLeftDetect.h:3, from /home/karthik/OpenCV/ObjLeft-master/main.cpp:1: /usr/local/include/opencv2/core/mat.inl.hpp:438:1: note: cv::Mat::Mat(cv::Size, int, void, size_t) Mat::Mat(Size _sz, int type, void _data, size_t step) ^ /usr/local/include/opencv2/core/mat.inl.hpp:438:1: note: candidate expects 4 arguments, 1 provided /usr/local/include/opencv2/core/mat.inl.hpp:405:1: note: cv::Mat::Mat(int, int, int, void, size_t) Mat::Mat(int _rows, int _cols, int type, void _data, size_t step) ^ /usr/local/include/opencv2/core/mat.inl.hpp:405:1: note: candidate expects 5 arguments, 1 provided /usr/local/include/opencv2/core/mat.inl.hpp:386:1: note: cv::Mat::Mat(const cv::Mat&) Mat::Mat(const Mat& m) ^ /usr/local/include/opencv2/core/mat.inl.hpp:386:1: note: no known conversion for argument 1 from ‘IplImage* {aka IplImage}’ to ‘const cv::Mat&’ /usr/local/include/opencv2/core/mat.inl.hpp:377:1: note: cv::Mat::Mat(int, const int, int, const Scalar&) Mat::Mat(int _dims, const int* _sz, int _type, const Scalar& s) ^ /usr/local/include/opencv2/core/mat.inl.hpp:377:1: note: candidate expects 4 arguments, 1 provided /usr/local/include/opencv2/core/mat.inl.hpp:369:1: note: cv::Mat::Mat(int, const int, int) Mat::Mat(int dims, const int _sz, int _type) ^ /usr/local/include/opencv2/core/mat.inl.hpp:369:1: note: candidate expects 3 arguments, 1 provided /usr/local/include/opencv2/core/mat.inl.hpp:360:1: note: cv::Mat::Mat(cv::Size, int, const Scalar&) Mat::Mat(Size _sz, int _type, const Scalar& _s) ^ /usr/local/include/opencv2/core/mat.inl.hpp:360:1: note: candidate expects 3 arguments, 1 provided /usr/local/include/opencv2/core/mat.inl.hpp:343:1: note: cv::Mat::Mat(int, int, int, const Scalar&) Mat::Mat(int _rows, int _cols, int _type, const Scalar& s) ^ /usr/local/include/opencv2/core/mat.inl.hpp:343:1: note: candidate expects 4 arguments, 1 provided /usr/local/include/opencv2/core/mat.inl.hpp:352:1: note: cv::Mat::Mat(cv::Size, int) Mat::Mat(Size sz, int type) ^ /usr/local/include/opencv2/core/mat.inl.hpp:352:1: note: candidate expects 2 arguments, 1 provided /usr/local/include/opencv2/core/mat.inl.hpp:335:1: note: cv::Mat::Mat(int, int, int) Mat::Mat(int rows, int cols, int type) ^ /usr/local/include/opencv2/core/mat.inl.hpp:335:1: note: candidate expects 3 arguments, 1 provided /usr/local/include/opencv2/core/mat.inl.hpp:329:1: note: cv::Mat::Mat() Mat::Mat() ^ /usr/local/include/opencv2/core/mat.inl.hpp:329:1: note: candidate expects 0 arguments, 1 provided /home/karthik/OpenCV/ObjLeft-master/main.cpp:88:18: warning: ignoring return value of ‘int system(const char)’, declared with attribute warn_unused_result [-Wunused-result] system("pause"); ^ /home/karthik/OpenCV/ObjLeft-master/main.cpp:92:42: warning: ignoring return value of ‘int fscanf(FILE, const char, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf( InputFile, "%lf", &readData[i]); ^ /home/karthik/OpenCV/ObjLeft-master/main.cpp:118:21: warning: ignoring return value of ‘int scanf(const char, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&method); ^ /home/karthik/OpenCV/ObjLeft-master/main.cpp:124:26: warning: ignoring return value of ‘int scanf(const char, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&test_video); ^ /home/karthik/OpenCV/ObjLeft-master/main.cpp:195:17: warning: ignoring return value of ‘int system(const char)’, declared with attribute warn_unused_result [-Wunused-result] system("pause"); ^ make[2]: *** [CMakeFiles/ObjLeft.dir/main.cpp.o] Error 1 make[1]: *** [CMakeFiles/ObjLeft.dir/all] Error 2 make: *** [all] Error 2 root@karthik-AU802AA-ACJ-CQ3170IX:/home/karthik/OpenCV/ObjLeft-master# gedit gpu.hpp

(gedit:2585): dconf-WARNING **: failed to commit changes to dconf: The connection is closed

** (gedit:2585): CRITICAL **: log.vala:104: Unable to connect to Zeitgeist: The connection is closed

(gedit:2585): dconf-WARNING **: failed to commit changes to dconf: The connection is closed

(gedit:2585): dconf-WARNING **: failed to commit changes to dconf: The connection is closed Error creating proxy: The connection is closed (g-io-error-quark, 18) Error creating proxy: The connection is closed (g-io-error-quark, 18) Error creating proxy: The connection is closed (g-io-error-quark, 18) Error creating proxy: The connection is closed (g-io-error-quark, 18)

(gedit:2585): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:2585): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:2585): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:2585): dconf-WARNING **: failed to commit changes to dconf: The connection is closed

(gedit:2585): dconf-WARNING **: failed to commit changes to dconf: The connection is closed

(gedit:2585): dconf-WARNING **: failed to commit changes to dconf: The connection is closed

** (gedit:2585): CRITICAL **: Unable to connect to Zeitgeist's DataSourceRegistry: The connection is closed

(gedit:2585): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:2585): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:2585): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(gedit:2585): dconf-WARNING **: failed to commit changes to dconf: The connection is closed

karthikbhat1994 avatar Feb 15 '16 11:02 karthikbhat1994

Which OpenCV are you using? I am using OpenCV-2.3.1

kevinlin311tw avatar Feb 15 '16 11:02 kevinlin311tw

i am using OpenCV-3.1.0

karthikbhat1994 avatar Feb 15 '16 11:02 karthikbhat1994

Could you downgrade OpenCV and compile again?

kevinlin311tw avatar Feb 15 '16 11:02 kevinlin311tw

Sure will try that and update it to you.

On Mon, Feb 15, 2016 at 4:56 PM, Kevin Ke-Yun Lin [email protected] wrote:

Could you downgrade OpenCV and compile again?

— Reply to this email directly or view it on GitHub https://github.com/kevinlin311tw/ObjLeft/issues/1#issuecomment-184173887 .

karthikbhat1994 avatar Feb 15 '16 11:02 karthikbhat1994

OpenCV version 3.1.0 is not backward compatible?

On Mon, Feb 15, 2016 at 5:08 PM, Karthik Bhat [email protected] wrote:

Sure will try that and update it to you.

On Mon, Feb 15, 2016 at 4:56 PM, Kevin Ke-Yun Lin < [email protected]> wrote:

Could you downgrade OpenCV and compile again?

— Reply to this email directly or view it on GitHub https://github.com/kevinlin311tw/ObjLeft/issues/1#issuecomment-184173887 .

karthikbhat1994 avatar Feb 15 '16 11:02 karthikbhat1994

Hi, I had the same problem upgrading to 3.1.0 I solved the problem: 'vector' has not been declared adding the line: using namespace std; Also, I suggest you to check the new libraries in terminal with: pkg-config opencv --libs And change the linker. This and checking documentation was really useful for me for some errors :)

debihiga avatar Feb 27 '16 03:02 debihiga

Thank you for your response. It was helpful and will surely make changes. On 27-Feb-2016 8:30 am, "debihiga" [email protected] wrote:

Hi, I had the same problem upgrading to 3.1.0 I solved the problem: 'vector' has not been declared adding the line: using namespace std; Also, I suggest you to check the new libraries in terminal with: pkg-config opencv --libs And change the linker. This and checking documentation was really useful for me for some errors :)

— Reply to this email directly or view it on GitHub https://github.com/kevinlin311tw/ObjLeft/issues/1#issuecomment-189564162 .

karthikbhat1994 avatar Feb 27 '16 03:02 karthikbhat1994

I add the line:

using namespace std;

, and it works.

yhlleo avatar May 17 '16 03:05 yhlleo

Hi,I had the same troublle with 3.1.0 on Ubuntu.And I'm a newfish in opencv,I wonder how to change the linker as you mentioned @debihiga @karthikbhat1994 :)

josephineWrmin avatar Dec 12 '16 13:12 josephineWrmin

and pkg-config -libs opencv returns these: -L/usr/local/lib -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn -lopencv_dpm -lopencv_fuzzy -lopencv_line_descriptor -lopencv_optflow -lopencv_plot -lopencv_reg -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_rgbd -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_face -lopencv_xfeatures2d -lopencv_shape -lopencv_video -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_xobjdetect -lopencv_objdetect -lopencv_ml -lopencv_xphoto -lippicv -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_photo -lopencv_imgproc -lopencv_core What should I change? ?

josephineWrmin avatar Dec 12 '16 13:12 josephineWrmin