<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://theeyetribe.com/forum/feed.php?f=25&amp;t=544" />

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2015-09-22T17:43:18+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=25&amp;t=544</id>
<entry>
<author><name><![CDATA[innoraj@gmail.com]]></name></author>
<updated>2015-09-22T17:43:18+02:00</updated>
<published>2015-09-22T17:43:18+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=544&amp;p=2283#p2283</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=544&amp;p=2283#p2283"/>
<title type="html"><![CDATA[Re: How to get xy coordinates from eye tracker...???]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=544&amp;p=2283#p2283"><![CDATA[
#include &quot;gazeapi.h&quot;<br />#include &quot;iostream&quot;<br /><br />float LeftEyeX, LeftEyeY, RightEyeX, RightEyeY;<br /><br />using namespace std;<br /><br />// --- MyGaze definition<br />class MyGaze : public gtl::IGazeListener<br />{<br />public:<br />MyGaze();<br />~MyGaze();<br />private:<br />// IGazeListener<br />void on_gaze_data( gtl::GazeData const &amp; gaze_data );<br />private:<br />gtl::GazeApi m_api;<br />};<br /><br />// --- MyGaze implementation<br />MyGaze::MyGaze()<br />{<br />// Connect to the server in push mode on the default TCP port (6555)<br />if( m_api.connect( true ) )<br />{<br />// Enable GazeData notifications<br />m_api.add_listener( *this );<br />}<br />}<br /><br />MyGaze::~MyGaze()<br />{<br />m_api.remove_listener( *this );<br />m_api.disconnect();<br />}<br /><br /><br />void MyGaze::on_gaze_data( gtl::GazeData const &amp; gaze_data )<br />{<br />if( gaze_data.state &amp; gtl::GazeData::GD_STATE_TRACKING_GAZE )<br />{<br />gtl::Point2D const &amp; smoothedCoordinatesLeftEye = gaze_data.lefteye.avg; // smoothed data from left eye<br />gtl::Point2D const &amp; smoothedCoordinatesRightEye= gaze_data.righteye.avg; // smoothed data from right eye<br /><br />LeftEyeX=smoothedCoordinatesLeftEye.x;<br />LeftEyeY=smoothedCoordinatesLeftEye.y;<br />      <br />RightEyeX=smoothedCoordinatesRightEye.x;<br />RightEyeY=smoothedCoordinatesRightEye.y;<br />//cout &lt;&lt; &quot;x = &quot; &lt;&lt; (LeftEyeX+ RightEyeX)/2&lt;&lt; &quot; y = &quot; &lt;&lt; (LeftEyeY+RightEyeY)/2 &lt;&lt; endl; <br />}<br />}<br /><br />int main()<br />{<br /><br />MyGaze on_gaze_data ;<br /><br />while (1)<br />{<br />cout &lt;&lt; &quot;x = &quot; &lt;&lt; (LeftEyeX+ RightEyeX)/2&lt;&lt; &quot; y = &quot; &lt;&lt; (LeftEyeY+RightEyeY)/2 &lt;&lt; endl; <br />}<br /><br />return 0;<br />}<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=7321">skatainnoraj@gmail.com</a> — 22 Sep 2015, 17:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[innoraj@gmail.com]]></name></author>
<updated>2015-09-22T17:25:29+02:00</updated>
<published>2015-09-22T17:25:29+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=544&amp;p=2282#p2282</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=544&amp;p=2282#p2282"/>
<title type="html"><![CDATA[How to get xy coordinates from eye tracker...???]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=544&amp;p=2282#p2282"><![CDATA[
Hi,<br /><br />Could any one suggest how to obtain x y coordinates from eye tracker...???<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=7321">skatainnoraj@gmail.com</a> — 22 Sep 2015, 17:25</p><hr />
]]></content>
</entry>
</feed>