diff options
author | Théo de la Hogue | 2023-08-30 13:49:34 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-08-30 13:49:34 +0200 |
commit | d4e458df099fe75c0812c533f85cdc1f33c8b987 (patch) | |
tree | 5cf5d5405b399c1cd5ff34d18da548385f5182d2 /src/argaze.test/AreaOfInterest/AOI2DScene.py | |
parent | afbb886e5b50896b3b826ee518bb00a4278624ad (diff) | |
download | argaze-d4e458df099fe75c0812c533f85cdc1f33c8b987.zip argaze-d4e458df099fe75c0812c533f85cdc1f33c8b987.tar.gz argaze-d4e458df099fe75c0812c533f85cdc1f33c8b987.tar.bz2 argaze-d4e458df099fe75c0812c533f85cdc1f33c8b987.tar.xz |
Improving drawing features to allow fine tuning thru JSON configuration file.
Diffstat (limited to 'src/argaze.test/AreaOfInterest/AOI2DScene.py')
-rw-r--r-- | src/argaze.test/AreaOfInterest/AOI2DScene.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/argaze.test/AreaOfInterest/AOI2DScene.py b/src/argaze.test/AreaOfInterest/AOI2DScene.py index 55db353..4e96e98 100644 --- a/src/argaze.test/AreaOfInterest/AOI2DScene.py +++ b/src/argaze.test/AreaOfInterest/AOI2DScene.py @@ -97,7 +97,7 @@ class TestAOI2DSceneClass(unittest.TestCase): gaze_position_D = GazeFeatures.GazePosition((0.5, 1.5), precision=0.25) # Check circlecast results for gaze postion A - for name, aoi, matching_region, aoi_ratio, circle_ratio in aoi_2d_scene.circlecast(gaze_position_A.value, gaze_position_A.precision): + for name, aoi, matched_region, aoi_ratio, circle_ratio in aoi_2d_scene.circlecast(gaze_position_A.value, gaze_position_A.precision): if name == "A": @@ -112,7 +112,7 @@ class TestAOI2DSceneClass(unittest.TestCase): self.assertEqual(circle_ratio, 0.) # Check circlecast results for gaze postion B - for name, aoi, matching_region, aoi_ratio, circle_ratio in aoi_2d_scene.circlecast(gaze_position_B.value, gaze_position_B.precision): + for name, aoi, matched_region, aoi_ratio, circle_ratio in aoi_2d_scene.circlecast(gaze_position_B.value, gaze_position_B.precision): if name == "A": @@ -127,7 +127,7 @@ class TestAOI2DSceneClass(unittest.TestCase): self.assertTrue(math.isclose(circle_ratio, 1., abs_tol=1e-3)) # Check circlecast results for gaze postion C - for name, aoi, matching_region, aoi_ratio, circle_ratio in aoi_2d_scene.circlecast(gaze_position_C.value, gaze_position_C.precision): + for name, aoi, matched_region, aoi_ratio, circle_ratio in aoi_2d_scene.circlecast(gaze_position_C.value, gaze_position_C.precision): if name == "A": @@ -142,7 +142,7 @@ class TestAOI2DSceneClass(unittest.TestCase): self.assertTrue(math.isclose(circle_ratio, 1 / 4, abs_tol=1e-3)) # Check circlecast results for gaze postion D - for name, aoi, matching_region, aoi_ratio, circle_ratio in aoi_2d_scene.circlecast(gaze_position_D.value, gaze_position_D.precision): + for name, aoi, matched_region, aoi_ratio, circle_ratio in aoi_2d_scene.circlecast(gaze_position_D.value, gaze_position_D.precision): if name == "A": |