diff options
-rw-r--r-- | src/argaze/AreaOfInterest/AOI2DScene.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/argaze/AreaOfInterest/AOI2DScene.py b/src/argaze/AreaOfInterest/AOI2DScene.py index ae29d6a..4537c8e 100644 --- a/src/argaze/AreaOfInterest/AOI2DScene.py +++ b/src/argaze/AreaOfInterest/AOI2DScene.py @@ -38,14 +38,14 @@ class AOI2DScene(AOIFeatures.AOIScene): return looked, ignored - def draw(self, frame, gaze_position: GazeFeatures.GazePosition, exclude=[], base_color=(0, 0, 255), looked_color=(0, 255, 0)): + def draw(self, frame, exclude=[], color=(0, 0, 255)): """Draw AOI polygons on frame.""" for name, aoi2D in self.items(): if name in exclude: continue - + ''' looked_region, aoi_ratio, gaze_ratio = aoi2D.looked_region(gaze_position, gaze_position.accuracy) # Draw looked region @@ -68,7 +68,7 @@ class AOI2DScene(AOIFeatures.AOIScene): if len(aoi2D) == 4: looked_pixel = aoi2D.looked_pixel(aoi2D.look_at(gaze_position)) cv.circle(frame, looked_pixel, 2, color, -1) - + ''' # Draw form aoi2D.draw(frame, color) |