aboutsummaryrefslogtreecommitdiff
path: root/src/argaze/GazeFeatures.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/argaze/GazeFeatures.py')
-rw-r--r--src/argaze/GazeFeatures.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/argaze/GazeFeatures.py b/src/argaze/GazeFeatures.py
index bb5f991..33fd562 100644
--- a/src/argaze/GazeFeatures.py
+++ b/src/argaze/GazeFeatures.py
@@ -15,6 +15,7 @@ import json
from inspect import getmembers
from argaze import DataStructures
+from argaze.AreaOfInterest import AOIFeatures
import numpy
import pandas
@@ -700,6 +701,20 @@ class ScanPathAnalyzer():
raise NotImplementedError('analyze() method not implemented')
+class AOIMatcher():
+ """Abstract class to define what should provide an AOI matcher algorithm."""
+
+ def match(self, aoi_scene: AOIFeatures.AOIScene, gaze_movement: GazeMovement, exclude=[]) -> str:
+ """Which AOI is looked in the scene?"""
+
+ raise NotImplementedError('match() method not implemented')
+
+ @property
+ def looked_aoi(self) -> str:
+ """Get most likely looked aoi name."""
+
+ raise NotImplementedError('looked_aoi getter not implemented')
+
AOIScanStepType = TypeVar('AOIScanStep', bound="AOIScanStep")
# Type definition for type annotation convenience