EDIT
Human walk motion Detect link explains how to detect human motion with Opencv 2.3
on Visual Studio 2010 with C++. I downloaded the source code motemp9.c
along with the text files walkImgs.txt
and output.txt
and the header filter.h
but do not understand the following stuff.
I am having a hard time to execute this program. Can someone help me in clarifying these points?
In
motiontemp9.c
file, under main the files in the lines are not present. Or are these files walkImgs and output?if((ReadFP=fopen("walk2.txt", "r")) == NULL) ErrorExit(ER_READ_OPEN); if((WriteFP=fopen("output2.txt", "w")) == NULL) ErrorExit(ER_WRITE_OPEN);
The following errors occur on running the code
error C2660: 'cvGetSeqElem' : function does not take 3 arguments motemp9.cpp(186): error C2227: left of '->rect' must point to class/struct/union/generic type motemp9.cpp(189): error C2440: '=' : cannot convert from 'CvScalar' to 'int' 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called motemp9.cpp(218): error C2664: 'cvCircle' : cannot convert parameter 4 from 'int' to 'CvScalar' 1> No constructor could take the source type, or constructor overload resolution was ambiguous motemp9.cpp(220): error C2664: 'cvLine' : cannot convert parameter 4 from 'int' to 'CvScalar' 1> No constructor could take the source type, or constructor overload resolution was ambiguous ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Kindly guide in what needs to be done to run this code.