Giter Site home page Giter Site logo

objleft's People

Contributors

kevinlin311tw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

objleft's Issues

Many false alarms in other videos

Hi Kevin,

Thanks for the good work! I've tried your code and tested on the given video, and it works as expected. However, when I tried it on other videos, such as the ones on Pets 2006/2007 or AVSS 2007, where it was reported performing well on your paper, there are quite a few false alarms and in most cases it can't reproduce the same results as in your paper (like the ones with pictures in the paper).

I assume I was supposed to change the parameter.txt to make it fit better with different videos and settings. Can you suggest what settings you were using in your experiments with these datasets? Thanks.

Pedestrian detector is disabled?

In line 256 and 257 of ObjLeftDetect.cpp

/************************************************************************/
/* Pedestrian detector												   */
/************************************************************************/
for (int t = (retreval_time-1); t>=2; t--)
{
	//_CBM_model->DetectPrevious_nForeground_HOG(t);
	//_CBM_model->DetectPrevious_nForeground_DPM(t);
}

As so the DPM.avi recorded is basically empty,
is there any reason for that?

Some issues with myGMM.cpp

Hi, Kevin,

Thanks for the nice work and making the source open.

Just spotted a (maybe minor) issue.
Seems that the issues originate from the original GMM source code.

In myGMM.cpp, line 458, var*var should be var. It's because var is already squared.
The update formula was derived for the variance (square of standard deviation).
Anyway, correcting it means tuning many parameters again... so I also don't bother with it...

In myGMM.cpp, line 455, the decision of background or foreground is based on

p(x | BG) > cthr

Hope this help.

AY

flash back on the successfully compiled program

Hi Kevin,
Thank you for your sharing the code of the AOD. I downloaded your code and successfully compiled this code. When I run the .exe program, input a video and set the ROI area, it flashed back and everything had gone and there is no error prompt. I can't find the reason. Could you help me deal with this problem? Thank you so much!

The code fails to run

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& 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& 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& 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& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:1265:4: error: ‘vector’ does not name a type
vector 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& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1291:42: error: expected ‘,’ or ‘...’ before ‘<’ token
void detect(const GpuMat& img, vector& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1295:46: error: ‘vector’ has not been declared
void detectMultiScale(const GpuMat& img, vector& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1295:52: error: expected ‘,’ or ‘...’ before ‘<’ token
void detectMultiScale(const GpuMat& img, vector& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1300:47: error: ‘vector’ has not been declared
void computeConfidence(const GpuMat& img, vector& hits, double hit_threshold,
^
/usr/include/opencv2/gpu/gpu.hpp:1300:53: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeConfidence(const GpuMat& img, vector& hits, double hit_threshold,
^
/usr/include/opencv2/gpu/gpu.hpp:1303:57: error: ‘vector’ has not been declared
void computeConfidenceMultiScale(const GpuMat& img, vector& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1303:63: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeConfidenceMultiScale(const GpuMat& img, vector& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1835:5: error: ‘vector’ does not name a type
vector prevPyr_;
^
/usr/include/opencv2/gpu/gpu.hpp:1836:5: error: ‘vector’ does not name a type
vector nextPyr_;
^
/usr/include/opencv2/gpu/gpu.hpp:1838:5: error: ‘vector’ does not name a type
vector buf_;
^
/usr/include/opencv2/gpu/gpu.hpp:1839:5: error: ‘vector’ does not name a type
vector 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 cv::Mat::Mat(const cv::MatCommaInitializer_<Tp>&)
template 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 cv::Mat::Mat(const cv::Point3
<Tp>&, bool)
template 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 cv::Mat::Mat(const cv::Point
<Tp>&, bool)
template 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 cv::Mat::Mat(const std::vector<Tp>&, bool)
template 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 cv::Mat::Mat(const cv::MatCommaInitializer
<Tp>&)
template 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 cv::Mat::Mat(const cv::Point3
<Tp>&, bool)
template 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 cv::Mat::Mat(const cv::Point
<Tp>&, bool)
template 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 cv::Mat::Mat(const std::vector<Tp>&, bool)
template 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

fatal error: 'omp.h' file not found

when i make this project ,have this problem

andy@fengguideMacBook-Pro ~/Documents/opencv/ObjLeft$ make                                                                                                           
[ 12%] Building CXX object CMakeFiles/ObjLeft.dir/main.cpp.o
In file included from /Users/andy/Documents/opencv/ObjLeft/main.cpp:1:
In file included from /Users/andy/Documents/opencv/ObjLeft/ObjLeftDetect.h:3:
**/Users/andy/Documents/opencv/ObjLeft/myDIP.h:19:10: fatal error: 'omp.h' file not found**
#include <omp.h>
         ^
1 error generated.
make[2]: *** [CMakeFiles/ObjLeft.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/ObjLeft.dir/all] Error 2
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.