diff options
author | Théo de la Hogue | 2022-09-07 10:39:28 +0200 |
---|---|---|
committer | Théo de la Hogue | 2022-09-07 10:39:28 +0200 |
commit | dae1b2cf419bb9079f6d13f8a16c95d4b73adb33 (patch) | |
tree | e12f4c9d03a71f9babd0d953aca1147d2e9fee21 /src/argaze/AreaOfInterest/AOI2DScene.py | |
parent | b39ea84110c2f5d8e18af5c6f9b870de1ab779eb (diff) | |
download | argaze-dae1b2cf419bb9079f6d13f8a16c95d4b73adb33.zip argaze-dae1b2cf419bb9079f6d13f8a16c95d4b73adb33.tar.gz argaze-dae1b2cf419bb9079f6d13f8a16c95d4b73adb33.tar.bz2 argaze-dae1b2cf419bb9079f6d13f8a16c95d4b73adb33.tar.xz |
Replacing Precision by Accuracy
Diffstat (limited to 'src/argaze/AreaOfInterest/AOI2DScene.py')
-rw-r--r-- | src/argaze/AreaOfInterest/AOI2DScene.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/argaze/AreaOfInterest/AOI2DScene.py b/src/argaze/AreaOfInterest/AOI2DScene.py index 2d0ff17..9752d30 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_precision: GazeFeatures.GazePrecision): + def look_at(self, gaze_position: GazeFeatures.GazePosition, gaze_accuracy: GazeFeatures.GazeAccuracy): """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_precision) + # looked_region, aoi_ratio, gaze_ratio = aoi2D.looked_region(gaze_position, gaze_accuracy) if aoi.looked(): @@ -38,7 +38,7 @@ class AOI2DScene(AOIFeatures.AOIScene): return looked, ignored - def draw(self, frame, gaze_position: GazeFeatures.GazePosition, gaze_precision: GazeFeatures.GazePrecision, exclude=[], base_color=(0, 0, 255), looked_color=(0, 255, 0)): + def draw(self, frame, gaze_position: GazeFeatures.GazePosition, gaze_accuracy: GazeFeatures.GazeAccuracy, 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_precision) + looked_region, aoi_ratio, gaze_ratio = aoi2D.looked_region(gaze_position, gaze_accuracy) # Draw looked region looked_region.draw(frame, base_color, 4) |