Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello sir
i am facing the problem in getting the co-ordinates of the gaze when it is being checked in console application it use to give the coordinates...but in the windows application it is not giving the co ordinate values i am getting error in the entry value please help me in this regarding thanks.....

What I have tried:

private void pictureBox1_Click(object sender, EventArgs e)
        {
            using (var eyeXHost = new EyeXHost())
            {
                // Create a data stream: lightly filtered gaze point data.
                // Other choices of data streams include EyePositionDataStream and FixationDataStream.
                using (var lightlyFilteredGazeDataStream = eyeXHost.CreateGazePointDataStream(GazePointDataMode.LightlyFiltered)) 
                {
                    // Start the EyeX host.
                    eyeXHost.Start();
                    //label1.Text= ("Gaze point at ({0:0.0}, {1:0.0}) @{2:0}", e.X, e.Y, e.Timestamp);
                    //label1.Text = "Hi";
                    
                // Write the data to the console.
                     lightlyFilteredGazeDataStream.Next += (s,entry) => Console.WriteLine("Gaze point at ({0:0.0}, {1:0.0}) @{2:0}", entry.X, entry.Y, entry.Timestamp);

                    // Let it run until a key is pressed.
                    MessageBox.Show("Gaze data recording, press any key to exit...");
                     
                }
            }
        }
Posted
Updated 1-Mar-17 23:19pm
v2
Comments
johannesnestler 2-Mar-17 5:15am    
no clue what you are talking about...
Graeme_Grant 2-Mar-17 5:16am    
What is the error?
chaitu49 2-Mar-17 5:18am    
lightlyFilteredGazeDataStream.Next += (s,entry) => Console.WriteLine("Gaze point at ({0:0.0}, {1:0.0}) @{2:0}", entry.X, entry.Y, entry.Timestamp); in the entry point
Karthik_Mahalingam 2-Mar-17 8:26am    
Always use  Reply  button, to post Comments/query to the user, so that the user gets notified and responds to your text.

1 solution

You would be better off asking these product specific SDK questions in the developer's own Forums: Forums for Tobii EyeX SDK development for Tobii eye trackers[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900