diff options
author | Théo de la Hogue | 2023-06-06 17:47:16 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-06-06 17:47:16 +0200 |
commit | bd9cd27c9d44c072164f564ffffeb22e37106b89 (patch) | |
tree | 3c8a1c818ce99fdd0fe90e9798d9c0c99a2efd49 /src/argaze/GazeFeatures.py | |
parent | 8352274b19ae10cecbdb87f96606bc28157427c8 (diff) | |
download | argaze-bd9cd27c9d44c072164f564ffffeb22e37106b89.zip argaze-bd9cd27c9d44c072164f564ffffeb22e37106b89.tar.gz argaze-bd9cd27c9d44c072164f564ffffeb22e37106b89.tar.bz2 argaze-bd9cd27c9d44c072164f564ffffeb22e37106b89.tar.xz |
Updating documentation format.
Diffstat (limited to 'src/argaze/GazeFeatures.py')
-rw-r--r-- | src/argaze/GazeFeatures.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py index 6209dc9..0e40238 100644 --- a/src/argaze/GazeFeatures.py +++ b/src/argaze/GazeFeatures.py @@ -88,7 +88,7 @@ class GazePosition(): else: return distance < self.precision - def draw(self, frame, color=(0, 255, 255), draw_precision=True): + def draw(self, frame: numpy.array, color=(0, 255, 255), draw_precision=True): """Draw gaze position point and precision circle.""" if self.valid: @@ -190,7 +190,7 @@ class GazeMovement(): return output - def draw_positions(self, frame, color=(0, 55, 55)): + def draw_positions(self, frame: numpy.array, color=(0, 55, 55)): """Draw gaze movement positions""" gaze_positions = self.positions.copy() @@ -224,7 +224,7 @@ class Fixation(GazeMovement): raise NotImplementedError('merge() method not implemented') - def draw(self, frame, color): + def draw(self, frame: numpy.array, color): """Draw fixation into frame.""" raise NotImplementedError('draw() method not implemented') @@ -241,7 +241,7 @@ class Saccade(GazeMovement): super().__post_init__() - def draw(self, frame, color): + def draw(self, frame: numpy.array, color): """Draw saccade into frame.""" raise NotImplementedError('draw() method not implemented') @@ -442,7 +442,7 @@ class ScanPath(list): self.__last_fixation = fixation - def draw(self, frame, fixation_color=(255, 255, 255), saccade_color=(255, 255, 255), deepness=0): + def draw(self, frame: numpy.array, fixation_color=(255, 255, 255), saccade_color=(255, 255, 255), deepness=0): """Draw scan path into frame.""" last_step = None |