mdl.eyetracking.calibration

class mdl.eyetracking.calibration(w, h, tracker, window)[source]

This allows mdl.eyetracking package to initiate calibration/validation/drift correction.

Methods

alert_printf
draw_cross_hair
draw_image_line
draw_line
erase_cal_target
exit_image_display
getColorFromIndex
get_input_key
get_mouse_state
play_beep
set_image_palette
setup_image_display
clear_cal_display  
draw_cal_target  
draw_lozenge  
exit_cal_display  
image_title  
record_abort_hide  
setup_cal_display  
erase_cal_target()[source]

Erase the calibration/validation target.

play_beep(beepid)[source]

Play a sound during calibration/drift correction.

getColorFromIndex(colorindex)[source]

Return psychopy colors for elements in the camera image.

draw_line(x1, y1, x2, y2, colorindex)[source]

Draw a line. This is used for drawing crosshairs/squares.

get_mouse_state()[source]

Get the current mouse position and status

get_input_key()[source]

This function will be constantly pools, update the stimuli here is you need dynamic calibration target.

exit_image_display()[source]

Clear the camera image.

alert_printf(msg)[source]

Print error messages.

setup_image_display(width, height)[source]

Set up the camera image, for newer APIs, the size is 384 x 320 pixels.

draw_image_line(width, line, totlines, buff)[source]

Display image pixel by pixel, line by line.

set_image_palette(r, g, b)[source]

Given a set of RGB colors, create a list of 24bit numbers representing the pallet. I.e., RGB of (1,64,127) would be saved as 82047, or the number 00000001 01000000 011111111