EDIT
Human walk motion Detect链接解释了如何Opencv 2.3
使用 C++ 在 Visual Studio 2010 上检测人体运动。我下载了源代码motemp9.c
以及文本文件walkImgs.txt
和output.txt
标题filter.h
,但不理解以下内容。
我很难执行这个程序。有人可以帮助我澄清这些观点吗?
在
motiontemp9.c
文件中,在 main 下,行中的文件不存在。还是这些文件 walkImgs 和输出?if((ReadFP=fopen("walk2.txt", "r")) == NULL) ErrorExit(ER_READ_OPEN); if((WriteFP=fopen("output2.txt", "w")) == NULL) ErrorExit(ER_WRITE_OPEN);
运行代码出现以下错误
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 ==========
请指导运行此代码需要做什么。