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

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2014-03-03T13:52:59+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=11&amp;t=111</id>
<entry>
<author><name><![CDATA[sjobeek@gmail.com]]></name></author>
<updated>2014-03-03T13:52:59+02:00</updated>
<published>2014-03-03T13:52:59+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=111&amp;p=476#p476</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=111&amp;p=476#p476"/>
<title type="html"><![CDATA[Re: Command-line interface directly to EyeTribe UI Calibrati]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=111&amp;p=476#p476"><![CDATA[
Thanks for the simple example, and the binary, too! <br /><br />Yay for happy friday!<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=1353">skatasjobeek@gmail.com</a> — 03 Mar 2014, 13:52</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Martin]]></name></author>
<updated>2014-02-28T17:37:05+02:00</updated>
<published>2014-02-28T17:37:05+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=111&amp;p=436#p436</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=111&amp;p=436#p436"/>
<title type="html"><![CDATA[Re: Command-line interface directly to EyeTribe UI Calibrati]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=111&amp;p=436#p436"><![CDATA[
Not possible to pass command line arguments to the Eyetribe UI. I'm not sure it makes sense to make it so. For me a better approach is to have a small executable to just do the specific task. Since it's a happy Friday, here is the <span style="font-weight: bold">SimpleCalibrator</span>.<br /><br />Download the <a href="http://theeyetribe.com/downloads/SimpleCalibratorSource.zip" class="postlink">Visual Studio project</a> or go straight to the <a href="http://theeyetribe.com/downloads/SimpleCalibrator.zip" class="postlink">binary executable</a>. <br /><br />The application is simple. It uses the TETControls to do a calibration with the CalibrationRunner. It will look for command line arguments to specify the size and number of points. <br /><br />It would be started like this:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>SimpleCalibrator.exe width=1000 height=800 numpoints=9<br /></code></dd></dl><br /><br />The complete code looks like this:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>using System.Windows;<br />using System.Windows.Forms;<br />using System.Windows.Interop;<br />using TETCSharpClient;<br />using TETControls.Calibration;<br />using MessageBox = System.Windows.MessageBox;<br />using Size = System.Drawing.Size;<br /><br />namespace SimpleCalibrator<br />{<br />    public partial class MainWindow : Window<br />    {<br />        private Screen screen;<br />        private Size area;<br />        private int numPoints = 9;<br /><br />        public MainWindow()<br />        {<br />            GazeManager.Instance.Activate(GazeManager.ApiVersion.VERSION_1_0, GazeManager.ClientMode.Push);<br /><br />            InitializeComponent();<br /><br />            if (!GazeManager.Instance.IsConnected)<br />            {<br />                MessageBox.Show(&quot;EyeTribe Server has not been started&quot;);<br />                Close();<br />            }<br /><br />            Calibrate();<br />            GazeManager.Instance.Deactivate();<br />            Close();<br />        }<br /><br />        private void Calibrate()<br />        {<br />            //Run the calibration on 'this' monitor, default to full screen nine points<br />            screen = Screen.FromHandle(new WindowInteropHelper(this).Handle);<br />            area = new Size(screen.Bounds.Width, screen.Bounds.Height);<br /><br />            ParseArguments();<br /><br />            // Run the calibration<br />            CalibrationRunner calRunner = new CalibrationRunner(screen, area, numPoints);<br />            calRunner.Start();<br />        }<br /><br />        private void ParseArguments()<br />        {<br />            foreach (string s in App.args)<br />            {<br />                if (string.IsNullOrEmpty(s))<br />                    continue;<br /><br />                string&#91;&#93; keyVal = s.Split('=');<br /><br />                if (keyVal.Length &lt; 2)<br />                    continue;<br /><br />                string keyStr = keyVal&#91;0&#93;;<br />                string valueStr = keyVal&#91;1&#93;;<br /><br />                int value = 0;<br />                int.TryParse(valueStr, out value);<br /><br />                if(string.IsNullOrEmpty(keyStr) || value == 0)<br />                    continue;<br /><br />                switch (keyStr)<br />                {<br />                    case &quot;width&quot;:<br />                        if(value &lt; screen.Bounds.Width)<br />                           area.Width = value;<br />                        break;<br /><br />                    case &quot;height&quot;:<br />                        if(value &lt; screen.Bounds.Height)<br />                           area.Height = value;<br />                        break;<br /><br />                    case &quot;numpoints&quot;:<br />                        if(value == 9 || value == 12 || value == 16)<br />                        numPoints = value;<br />                        break;<br />                }<br />            }<br />        }<br />    }<br />}<br /><br /></code></dd></dl><br /><br />It's of course possible to extend the number of parameters (e.g. point color etc.). These are all properties of the CalibrationRunner class.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=117">skataMartin</a> — 28 Feb 2014, 17:37</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[sjobeek@gmail.com]]></name></author>
<updated>2014-02-28T10:47:09+02:00</updated>
<published>2014-02-28T10:47:09+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=111&amp;p=434#p434</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=111&amp;p=434#p434"/>
<title type="html"><![CDATA[Command-line interface directly to EyeTribe UI Calibration]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=111&amp;p=434#p434"><![CDATA[
Is it currently possible to directly run the calibration routine from the EyeTribe tracker from the command line?<br /><br />I imagine this is a very common use case, and something like <br /><dl class="codebox"><dt>Code: </dt><dd><code>EyeTribeUI.exe --calibrate</code></dd></dl><br />in order to run the calibration using the default /previous settings (and close the UI after) would be excellent. <br /><br /><br />In addition, the ability to &quot;accept&quot; or &quot;re-try&quot; the eye-tribe calibration using either the keyboard or gaze would be appreciated.  (is this already possible?)<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=1353">skatasjobeek@gmail.com</a> — 28 Feb 2014, 10:47</p><hr />
]]></content>
</entry>
</feed>