The Video Eyetracker Toolbox is implemented as an OLE Automation Object, built upon Microsoft's COM technology. This results in an extremely simple Application Programming Interface (API), which is supported by almost all modern Windows programming systems; for example: Delphi, C++, MATLAB, Visual Basic, even Visual Basic for Applications (imagine your eye tracker controlled from a Word macro!).
The Toolbox includes all the functions needed to incorporate eye tracking into experimental software. For example, calibration is performed by one simple call. Here is the complete Delphi source code, written in just seven lines, to implement a video eye tracker application which calibrates the eye tracking engine, tracks eye position, and displays fixation on a mimic of the subject's display. The COM object is highly optimised for performance and is fully threaded; this means that on a modern PC most of the computer's CPU time is available to service your application.
|MyEyeTracker := CoVideoEyetracker.Create;||Initialise and create an instance of the Toolbox OLE Automation Object|
|MyEyeTracker.SetCameraScreenDimensions(8, 36, 200, 150);||Position and display the eye image window|
|MyEyeTracker.SetMimicScreenDimensions(216, 36, 200, 150);||Position and display the mimic window|
|MyEyeTracker.Calibrate(params);||Initialise the calibration procedure|
|MyEyeTracker.StartTracking;||Begin eyetracking and display eye position in the mimic window|
Also included with the ToolBox is VideoEyetrace, a complete eye tracking environment, with mimic display and scrolling eye position graph. Includes visual stimuli for saccade and smooth pursuit experiments, plus bitmap images for reading and visual scanning experiments.