nicetoolbox.detectors.method_detectors.eth_xgaze.eth_xgaze_detector

XGaze3cams method detector class.

This code is by XuCong taken from /ps/project/pis/GazeInterpersonalSynchrony/code_from_XuCong

Classes

EthXgaze

The XGaze3cams class is a method detector that computes the gaze_individual component.

class nicetoolbox.detectors.method_detectors.eth_xgaze.eth_xgaze_detector.EthXgaze(io: SequenceIO, data: SequenceData, sequence_context: SequenceRuntimeConfig, algorithm_instance: str)[source]

The XGaze3cams class is a method detector that computes the gaze_individual component.

The method detector computes the gaze of individuals in the scene using multiple cameras.It provides the necessary preparations and post-inference visualizations to integrate the XGaze3cams algorithm into our pipeline.

Component: gaze_individual

components

A list containing the name of the component: gaze_individual.

Type:

list

algorithm

The name of the algorithm used to compute the gaze_individual component.

Type:

str

camera_names

A list of camera names used to capture the original input data.

Type:

list

Initialize base method detector with references.

post_inference()[source]

Post-processing after inference.

This method is called after the inference step and is used for any post-processing tasks that need to be performed.

visualization(data)[source]

Visualizes the processed frames of the xgaze3cams algorithm as a video for all cameras.

This function reads the processed frames from each camera, checks if all frames are present, and verifies that the number of frames per camera is consistent. It then creates a video for each camera using the processed frames.

Returns:

None

Raises:
  • AssertionError – If no frames are found for at least one camera or if the

  • number of frames per camera is not consistent.