nicetoolbox.connectors.elan.gaze_parser

Derive gaze_look_at and gaze_mutual arrays from an eyes boolean NPZ dict.

Functions

eyes_npz_to_gaze

Derive gaze_look_at_3d and gaze_mutual_3d from the eyes boolean NPZ dict.

nicetoolbox.connectors.elan.gaze_parser.eyes_npz_to_gaze(eyes_npz_dict: dict) dict[source]

Derive gaze_look_at_3d and gaze_mutual_3d from the eyes boolean NPZ dict.

Expects eyes_npz_dict to have an ‘eyes’ array with ‘eyfx’ in axis3:

eyes shape: (subjects, cameras, frames, labels) eyfx = looking at the other person