Home Forums Software Development Calibration Without a Screen

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2300
    Mark Castle
    Participant

    I plan on using the EyeX to track eye movements on something other than a monitor. I was thinking that I could draw different colored dots on the surface, and then set a timer that tells the user when to move their eyes to the next dot. Is this doable, and if so, what recommendations do you have? I know that the built in calibration procedure uses animation, both from dot to dot and to shrink the dot down for focus. Are these steps neccessary, and if so, how can they be reproduced without using a monitor?

    #2302
    Jenny [Tobii]
    Participant

    Hi Mark,

    This should be doable using the Tobii Gaze SDK. The key aspects of the calibration process that you will have to consider are that the person has to look at a precise point of the Active Display Area at a precise time, and that the length of the time the person has to look at each point is not fixed but dynamic. Each point is a single command to the eye tracker, and a callback is called when the eye tracker has collected enough eye-gaze data for that point.

    The animations of the built in calibration is to help the person focus on the precise point which is the calibration point. In your case you would have to make sure the person will be able to focus on a small enough point so that the eye-gaze data collected by the eye tracker for the point is valid.

    In the Tobii Gaze SDK C-API download you will find the documented calibration API in the tobiigaze_calibration.h header file. There are two C++ samples illustrating the use of the API: Samples/MinimalCalibration and Samples/wxWidgetsCalibrationSample (in the latter, take a look at CalibrationViewModel.cpp).

    #2345
    Mark Castle
    Participant

    Thanks for your response. I’ve designed several different grids and updated the calibration points in the minimal calibration sample program accordingly. Instead of using a timer, my idea was just to have the system beep when the user should look at the next dot. However, whenever I add std::cout << ‘\a’; to my code, the eye tracker disconnects and the calibration freezes after the first beep. The program itself does not crash, and Visual Studio doesn’t show any errors. The only changes I’ve made to the program are including iostream, modifying the gaze points, and adding a beep to the following section:

    printf("-------------ADD POINT %d (%.1f, %.1f) ------------\n", _next_calibration_point, _calibration_points[_next_calibration_point].x, _calibration_points[_next_calibration_point].y);
    std::cout << '\a';
    XSLEEP(2000);  // Give the user some time to move the gaze and focus on the object
    #2352
    Robert [Tobii]
    Participant

    Hi Mark,

    In the MinimalCalibration example, the add_calibration_point_handler function is run on a background thread. A beep or other synchronous GUI calls need to go on the main thread.

    #2358
    Mark Castle
    Participant

    I’m not familiar with threading in C and I couldn’t find anything definitive on Google. Could you explain how to accomplish this?

    #2395
    Anders
    Participant

    Hi Mark,
    it sounds weird that the tracker should disconnect and all just because you do a std::cout << '\a';. We’ll have to look into this.

    #2397
    Anders
    Participant

    Hi Mark,
    I tried making the changes that you described, except changing the calibration points, and I don’t see any of the problems that you describe. So the question is why it doesn’t work on your machine.

    When you say that the eye tracker disconnects and the calibration freezes, can you describe in more detail what you observe? Are there any messages printed to the Output window in Visual Studio?

    Robert’s comment about the UI thread doesn’t really apply in this case since console apps don’t care about threads.

    #2398
    Mark Castle
    Participant

    Let me try downloading the SDK again just to make sure nothing else was modified. I’ll test this and get back to you later tonight.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.