diff options
author | Théo de la Hogue | 2023-07-11 11:05:44 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-07-11 11:05:44 +0200 |
commit | 245e9dcf53a16538677f26353457067b8adf68f8 (patch) | |
tree | 7482d663d7ba9cc6b96cfa9bb04928d137762f5d | |
parent | 620353117b8970392024f837c56658e5a2cbb5d4 (diff) | |
download | argaze-245e9dcf53a16538677f26353457067b8adf68f8.zip argaze-245e9dcf53a16538677f26353457067b8adf68f8.tar.gz argaze-245e9dcf53a16538677f26353457067b8adf68f8.tar.bz2 argaze-245e9dcf53a16538677f26353457067b8adf68f8.tar.xz |
Drawing fixation borders as long as its duration in seconds.
-rw-r--r-- | src/argaze/GazeAnalysis/DispersionThresholdIdentification.py | 2 | ||||
-rw-r--r-- | src/argaze/GazeAnalysis/VelocityThresholdIdentification.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py b/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py index 5dd582d..34be490 100644 --- a/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py +++ b/src/argaze/GazeAnalysis/DispersionThresholdIdentification.py @@ -82,7 +82,7 @@ class Fixation(GazeFeatures.Fixation): """Draw fixation into image.""" cv2.circle(image, (int(self.focus[0]), int(self.focus[1])), int(self.deviation_max), color, -1) - cv2.circle(image, (int(self.focus[0]), int(self.focus[1])), int(self.deviation_max), border_color, len(self.positions)) + cv2.circle(image, (int(self.focus[0]), int(self.focus[1])), int(self.deviation_max), border_color, int(self.duration*1e-3)) @dataclass(frozen=True) class Saccade(GazeFeatures.Saccade): diff --git a/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py b/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py index 4f79b7e..fa38edf 100644 --- a/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py +++ b/src/argaze/GazeAnalysis/VelocityThresholdIdentification.py @@ -82,7 +82,7 @@ class Fixation(GazeFeatures.Fixation): """Draw fixation into image.""" cv2.circle(image, (int(self.focus[0]), int(self.focus[1])), int(self.deviation_max), color, -1) - cv2.circle(image, (int(self.focus[0]), int(self.focus[1])), int(self.deviation_max), border_color, len(self.positions)) + cv2.circle(image, (int(self.focus[0]), int(self.focus[1])), int(self.deviation_max), border_color, int(self.duration*1e-3)) @dataclass(frozen=True) class Saccade(GazeFeatures.Saccade): |