This is my modification of the original script so you don't need to enable Marker Tracking or define surfaces. You simply need to start the Coordinates Streaming Server in Pupil and run this independent script.
Note: Not using Surfaces and Marker Tracking decreases the accuracy of pointer movement. This won't work well enough because norm_gaze
data is being used instead of your surface gaze data.
You need PyMouse
and Xlib
installed:
$ sudo pip install pymouse
$ sudo apt-get install python-xlib
Tried, but getting the following error. Please help.
"
File "c:\Users\drkbr\Anaconda3\envs\myenv\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/drkbr/Desktop/Python/eye_controlled_mouse.py", line 2, in
from pymouse import PyMouse
File "c:\Users\drkbr\Anaconda3\envs\myenv\lib\site-packages\pymouse_init_.py", line 92, in
from windows import PyMouse, PyMouseEvent
ModuleNotFoundError: No module named 'windows' "