aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2022-09-20 18:34:29 +0200
committerThéo de la Hogue2022-09-20 18:34:29 +0200
commitafde4d6bc58125c2ac7770707c1e5b55fbf84c16 (patch)
tree893537cf19c1f7bc050a626456bd4ef915b27b37 /src
parent16ae51ff71e89a57beaebd259fb95c86fd0c13a0 (diff)
downloadargaze-afde4d6bc58125c2ac7770707c1e5b55fbf84c16.zip
argaze-afde4d6bc58125c2ac7770707c1e5b55fbf84c16.tar.gz
argaze-afde4d6bc58125c2ac7770707c1e5b55fbf84c16.tar.bz2
argaze-afde4d6bc58125c2ac7770707c1e5b55fbf84c16.tar.xz
Removing gaze_accuracy argument
Diffstat (limited to 'src')
-rw-r--r--src/argaze/AreaOfInterest/AOI2DScene.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/argaze/AreaOfInterest/AOI2DScene.py b/src/argaze/AreaOfInterest/AOI2DScene.py
index 9752d30..695925c 100644
--- a/src/argaze/AreaOfInterest/AOI2DScene.py
+++ b/src/argaze/AreaOfInterest/AOI2DScene.py
@@ -17,7 +17,7 @@ class AOI2DScene(AOIFeatures.AOIScene):
# set dimension member
self.dimension = 2
- def look_at(self, gaze_position: GazeFeatures.GazePosition, gaze_accuracy: GazeFeatures.GazeAccuracy):
+ def look_at(self, gaze_position: GazeFeatures.GazePosition):
"""Get looked and ignored AOI names."""
looked = {}
@@ -26,7 +26,7 @@ class AOI2DScene(AOIFeatures.AOIScene):
for name, aoi in self.items():
# TODO : use looked_region
- # looked_region, aoi_ratio, gaze_ratio = aoi2D.looked_region(gaze_position, gaze_accuracy)
+ # looked_region, aoi_ratio, gaze_ratio = aoi2D.looked_region(gaze_position.value)
if aoi.looked():
@@ -38,7 +38,7 @@ class AOI2DScene(AOIFeatures.AOIScene):
return looked, ignored
- def draw(self, frame, gaze_position: GazeFeatures.GazePosition, gaze_accuracy: GazeFeatures.GazeAccuracy, exclude=[], base_color=(0, 0, 255), looked_color=(0, 255, 0)):
+ def draw(self, frame, gaze_position: GazeFeatures.GazePosition, exclude=[], base_color=(0, 0, 255), looked_color=(0, 255, 0)):
"""Draw AOI polygons on frame."""
for name, aoi2D in self.items():
@@ -46,7 +46,7 @@ class AOI2DScene(AOIFeatures.AOIScene):
if name in exclude:
continue
- looked_region, aoi_ratio, gaze_ratio = aoi2D.looked_region(gaze_position, gaze_accuracy)
+ looked_region, aoi_ratio, gaze_ratio = aoi2D.looked_region(gaze_position, gaze_position.accuracy)
# Draw looked region
looked_region.draw(frame, base_color, 4)