aboutsummaryrefslogtreecommitdiff
path: root/src/argaze/GazeFeatures.py
diff options
context:
space:
mode:
authorThéo de la Hogue2023-06-06 17:47:16 +0200
committerThéo de la Hogue2023-06-06 17:47:16 +0200
commitbd9cd27c9d44c072164f564ffffeb22e37106b89 (patch)
tree3c8a1c818ce99fdd0fe90e9798d9c0c99a2efd49 /src/argaze/GazeFeatures.py
parent8352274b19ae10cecbdb87f96606bc28157427c8 (diff)
downloadargaze-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.py10
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