Note that there are some explanatory texts on larger screens.

plurals
  1. POMotion detection code {EDIT}
    primarykey
    data
    text
    <p><strong>EDIT</strong> <a href="http://andisplanet.com/classprojects/CFS/cfs2.html" rel="nofollow">Human walk motion Detect</a> link explains how to detect human motion with <code>Opencv 2.3</code> on Visual Studio 2010 with C++. I downloaded the source code <code>motemp9.c</code> along with the text files <code>walkImgs.txt</code> and <code>output.txt</code> and the header <code>filter.h</code> but do not understand the following stuff. </p> <p>I am having a hard time to execute this program. Can someone help me in clarifying these points?</p> <ol> <li><p>In <code>motiontemp9.c</code> file, under main the files in the lines are not present. Or are these files walkImgs and output? </p> <pre><code>if((ReadFP=fopen("walk2.txt", "r")) == NULL) ErrorExit(ER_READ_OPEN); if((WriteFP=fopen("output2.txt", "w")) == NULL) ErrorExit(ER_WRITE_OPEN); </code></pre></li> <li><p>The following errors occur on running the code</p> <pre><code>error C2660: 'cvGetSeqElem' : function does not take 3 arguments motemp9.cpp(186): error C2227: left of '-&gt;rect' must point to class/struct/union/generic type motemp9.cpp(189): error C2440: '=' : cannot convert from 'CvScalar' to 'int' 1&gt; 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&gt; 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&gt; No constructor could take the source type, or constructor overload resolution was ambiguous ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== </code></pre></li> </ol> <p>Kindly guide in what needs to be done to run this code.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload