nicetoolbox.detectors.feature_detectors.gaze_multiview.gaze_fusion¶
MultiviewFusion feature detector. Fuses raw per-camera gaze vectors into a single world-space vector.
Classes
Computes a single 3D gaze vector from multiple camera views and/or multiple algorithms. |
- class nicetoolbox.detectors.feature_detectors.gaze_multiview.gaze_fusion.GazeFusion(config: Dict, io: IO, data: Data)[source]¶
Computes a single 3D gaze vector from multiple camera views and/or multiple algorithms.
Given the fused 3D gaze vectors, the user can optionally select to apply a Savitzky-Golay filter for temporal smoothing. Finally, the fused 3D gaze vectors are projected back to each camera view to obtain 2D gaze points for visualization (If enabled).
- Expected Input:
Method detectors outputting ‘3d’ array.
Shape: (Subjects, Cameras, Frames, 3)
Optional: ‘confidence_scores’ (Subjects, Cameras, Frames) for weighted fusion.
Initialize the MultiviewFusion detector.
- Parameters:
config (Dict) – Configuration dictionary.
io (Any) – IO handler.
data (Any) – Data handler.