From afde4d6bc58125c2ac7770707c1e5b55fbf84c16 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 20 Sep 2022 18:34:29 +0200 Subject: Removing gaze_accuracy argument --- src/argaze/AreaOfInterest/AOI2DScene.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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) -- cgit v1.1