diff options
Diffstat (limited to 'src/argaze/GazeAnalysis/VelocityThresholdIdentification.py')
-rw-r--r-- | src/argaze/GazeAnalysis/VelocityThresholdIdentification.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py b/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py index a0aab68..d001688 100644 --- a/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py +++ b/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py @@ -16,12 +16,11 @@ __credits__ = [] __copyright__ = "Copyright 2023, Ecole Nationale de l'Aviation Civile (ENAC)" __license__ = "GPLv3" -import math +import cv2 +import numpy from argaze import GazeFeatures, DataFeatures -import numpy -import cv2 class Fixation(GazeFeatures.Fixation): """Define dispersion based fixation.""" @@ -60,9 +59,11 @@ class Fixation(GazeFeatures.Fixation): """Draw fixation into image. Parameters: + image: where to draw deviation_circle_color: color of circle representing fixation's deviation duration_border_color: color of border representing fixation's duration duration_factor: how many pixels per duration unit + draw_positions: """ # Draw duration border if required @@ -91,6 +92,7 @@ class Saccade(GazeFeatures.Saccade): """Draw saccade into image. Parameters: + image: where to draw line_color: color of line from first position to last position """ @@ -231,9 +233,6 @@ class GazeMovementIdentifier(GazeFeatures.GazeMovementIdentifier): # Output last saccade return last_saccade if not terminate else self.current_fixation().finish() - - # Always return empty gaze movement at least - return GazeFeatures.GazeMovement() def current_gaze_movement(self) -> GazeFeatures.GazeMovement: |