-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more work on player added new plugins.
- Loading branch information
Showing
10 changed files
with
267 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
''' | ||
(*)~---------------------------------------------------------------------------------- | ||
Pupil - eye tracking platform | ||
Copyright (C) 2012-2013 Moritz Kassner & William Patera | ||
Distributed under the terms of the CC BY-NC-SA License. | ||
License details are in the file license.txt, distributed as part of this software. | ||
----------------------------------------------------------------------------------~(*) | ||
''' | ||
|
||
from gl_utils import draw_gl_points_norm | ||
from plugin import Plugin | ||
import numpy as np | ||
|
||
from methods import denormalize | ||
|
||
class Display_Gaze(Plugin): | ||
"""docstring for DisplayGaze""" | ||
def __init__(self, g_pool,atb_pos=None): | ||
super(Display_Gaze, self).__init__() | ||
self.g_pool = g_pool | ||
self.order = .8 | ||
self.atb_pos = atb_pos | ||
self.pupil_display_list = [] | ||
|
||
def update(self,frame,recent_pupil_positions,events): | ||
self.pupil_display_list = [pt['norm_gaze'] for pt in recent_pupil_positions if pt['norm_gaze'] is not None] | ||
|
||
def gl_display(self): | ||
draw_gl_points_norm(self.pupil_display_list,size=35,color=(1.,.2,.4,.6)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.