<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jan 17, 2013, at 1:04 PM, Laurie Dutchen &lt;<a href="mailto:ldutche@glencove.k12.ny.us">ldutche@glencove.k12.ny.us</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"><div lang="EN-US" link="blue" vlink="purple"><div class="Section1" style="page: Section1; "><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><font size="2" face="Arial"><span style="font-size: 10pt; ">HELP!!!<o:p></o:p></span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><font size="2" face="Arial"><span style="font-size: 10pt; ">&nbsp;</span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><font size="2" face="Arial"><span style="font-size: 10pt; ">I have a student who is trying to complete a project and we have hit a brick wall!<o:p></o:p></span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><font size="2" face="Arial"><span style="font-size: 10pt; ">&nbsp;</span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><font size="2" face="Arial"><span style="font-size: 10pt; ">He wants to be able to determine when an object comes into the camera’s view.&nbsp; How can we do that?<o:p></o:p></span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><font size="2" face="Arial"><span style="font-size: 10pt; ">&nbsp;</span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><font size="2" face="Arial"><span style="font-size: 10pt; ">Thanks,<o:p></o:p></span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><font size="2" face="Arial"><span style="font-size: 10pt; ">Laurie Dutchen<o:p></o:p></span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><font size="2" face="Arial"><span style="font-size: 10pt; ">Math/Computer Science Teacher<o:p></o:p></span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><st1:place w:st="on"><st1:placename w:st="on"><font size="2" face="Arial"><span style="font-size: 10pt; ">Glen Cove</span></font></st1:placename><font size="2"><span style="font-size: 10pt; ">&nbsp;<st1:placetype w:st="on">High School</st1:placetype></span></font></st1:place><font size="2"><span style="font-size: 10pt; "><o:p></o:p></span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><st1:place w:st="on"><st1:city w:st="on"><font size="2" face="Arial"><span style="font-size: 10pt; ">Glen Cove</span></font></st1:city><font size="2"><span style="font-size: 10pt; ">,&nbsp;<st1:state w:st="on">NY</st1:state></span></font></st1:place><font size="2"><span style="font-size: 10pt; "><o:p></o:p></span></font></div></div></div></o:smarttagtype></blockquote></div><div><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"><div lang="EN-US" link="blue" vlink="purple"><div class="Section1" style="page: Section1; "><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Arial; "><st1:place w:st="on"><font size="2"><span style="font-size: 10pt; "><st1:state w:st="on"><br></st1:state></span></font></st1:place></div></div></div></o:smarttagtype></div><div>&lt;Reply from Don Slater; others may have different and better thoughts&gt;</div><div><br></div>That is an interesting and difficult question… Ask the student to think about it this way, how do they know when they have walked into the view of a camera that is pointed in their general direction.<div><br></div><div>Virtually impossible, unless there has been some indicators for the students to let them know that they are now in view, i.e. a sign that tells them "You are now in view of the camera" and / or another sign that tells them "You are now leaving the view of the camera". So what they might do is put a marker in the center of the camera view, make it invisible, figure out how far to the left or right of the marker the object can be and still be in camera view, and then check the distance:</div><div><br></div><div>For example, the student figures out that an object can be 2.5 meters to the left or 2.5 meters to the right of the marker and still be in the camera view. So the conditional statement will be something like</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if obj.distance to marker is less than 2.5 meters</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>// obj is in camera view; do what the obj should do</div><div><br></div><div>There are some assumptions here, that the obj and the marker are in line, and the camera is static (not moving)</div><div><br></div><div>If the object is not in line with the marker than the distance value may have to be tweaked…</div><div><br></div><div>If the camera is moving, than set the marker's vehicle to be the camera, so that as the camera moves, the marker moves with it, maintaining its relative position.</div><div><br></div><div>Let me know if you have any other questions. I am also going to post this question to the Alice Educator's Mailing list to see if what other solutions are out there.</div><div><br></div><div>All the best,</div><div>Don Slater</div><div><br><div><div><br></div></div></div></body></html>