<?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=24&amp;t=483" />

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2015-05-04T13:35:17+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=24&amp;t=483</id>
<entry>
<author><name><![CDATA[fbie]]></name></author>
<updated>2015-05-04T13:35:17+02:00</updated>
<published>2015-05-04T13:35:17+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=483&amp;p=2009#p2009</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=483&amp;p=2009#p2009"/>
<title type="html"><![CDATA[A Processing library for TheEyeTribe]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=483&amp;p=2009#p2009"><![CDATA[
Hi everyone,<br /><br />I'd like to share my Processing library for TheEyeTribe. The idea was to make it extremely convenient to access gaze data for students who do not have a programming background. The underlying implementation has been used in various projects already and seems to be very stable. It does not yet cover any convenient API for calibration, as <a href="http://theeyetribe.com/forum/viewtopic.php?f=24&amp;t=399&amp;p=1872&amp;sid=9d5bd90875d555d99dd399de3e5f9d0f&amp;sid=9d5bd90875d555d99dd399de3e5f9d0f#p1872" class="postlink">Jorge's Processing wrapper</a> does, but to get started you only need a very few lines of code.<br /><br /><a href="https://github.com/fbie/libeyetracking" class="postlink">https://github.com/fbie/libeyetracking</a> <br /><br />To illustrate, here is the example from GitHub:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>import dk.itu.pitlab.libeyetracking.*;<br /><br />EyeTracker tracker;<br /><br />public void setup() {<br />  size(displayWidth, displayHeight);<br />  background(0);<br />  ellipseMode(CENTER);<br />  smooth();<br />  tracker = new EyeTracker(this);<br />}<br /><br />public void draw() {<br />  clear();<br />  noFill();<br />  strokeWeight(10);<br /><br />  // Circle is green when tracking, red otherwise.<br />  if (tracker.isTracking())<br />    stroke(0, 255, 0);<br />  else<br />    stroke(255, 0, 0);<br /><br />  PVector c = tracker.gazeCoords();<br />  float ipd = tracker.ipd(); // Inter-pupillary distance.<br />  float ipd2 = ipd * ipd * ipd * 10000;<br />  ellipse(c.x, c.y, ipd2, ipd2);<br />}<br /></code></dd></dl><br /><br />Feedback is very much welcome. If you encounter any problems, just file a <a href="https://github.com/fbie/libeyetracking/issues/new" class="postlink">new Issue on GitHub</a>.<br /><br />Cheers,<br />Florian<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=8313">skatafbie</a> — 04 May 2015, 13:35</p><hr />
]]></content>
</entry>
</feed>