Git Product home page Git Product logo

pupil-helpers's Introduction

pupil-helpers

The pupil-helpers repository contains utility scripts and concise code examples that demonstrate how to communicate and develop your own tools with Pupil.

If you're new to Pupil, we highly recommend checking out the docs.

For documentation on Pupil's message based API, please read through the Networking section in the docs.

For more information about plugin development, check out the Plugin Guide.

Folder Content

  • python: Example Python scripts that showcase interaction with Pupil Remote and the Pupil IPC
  • matlab: Example Matlab scripts, see the folder's README.md for details
  • network_time_sync: Spec and implementation for the Pupil Timesync Protocol
  • markers_stickersheet: Surface marker images and vector files
  • write_your_own_plugin: Example Pupil plugin

Contributing

Pull Requests to this repo should be revisions of existing code. New examples should be referenced in the pupil-community repository.

pupil-helpers's People

Contributors

mkassner avatar n-m-t avatar papr avatar pfaion avatar romanroibu avatar snleu avatar thebau avatar willpatera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pupil-helpers's Issues

Undefined function/ variable 'socket'

Hello,

Im trying to run recv_message.m on matlab. I opened pupil capture on the side and downloaded the two folder packages "msgpac" and "zmq" and placed them on my desktop. However, whenever I run the code, I receive an error that that "undefined function or variable 'socket'" Can anyone help me out with this?

recv_world_video_frames.py

Hello,
if i use recv_world_video_frames.py as it is i get

topic,msg = sub.recv()
ValueError: too many values to unpack (expected 2)

if i split the line to look like

topic = sub.recv_string()
msg = sub.recv()

creating the image ends with

img = np.frombuffer(msg['__raw_data__'][0]).reshape(720,1280,3)
TypeError: byte indices must be integers or slices, not str

i tried

img = np.frombuffer(msgpack.loads(msg)['__raw_data__'][0]).reshape(720,1280,3)

which tells me that there's a key error with 'raw_data'
am i missing something here?
Best regards
M

[Q] Calling Pupil_Sync_Node.notify_all on main thread

This more a question than an issue.

I am using the pupil_sync_complete.py example for one of my projects. But I would like to process the incoming notifications on the main thread since I have some UI stuff to do. In pupil_sync_complete.py, l.328 notify_all() is called in the background thread. This is undesirable for me.

Is there an easy way to call this function on the main thread?
If not: My idea was to send it back using the pipe and manually checking self.thread_pipe for POLLIN events in the main thread. This way I have to manipulate the original code. Is there a way to implement this by subclassing Pupil_Sync_Node and not rewriting the complete _thread_loop() method?

Update Readme with links to bindings

Overview

Bindings for pupil-helpers that are written in languages other than Python will be linked in the pupil-helpers readme.

PRs to pupil-helpers repo should be revisions of the existing python pupil-helpers examples or new concise example scripts written in Python.

Actions

  1. Update readme with contribution section outlining the scope of contributions (as noted above)
  2. Update readme with bindings section with links to bindings contributed by the community.

Online Fixation data acquisition

Hello,
I would like to use Matlab to get Online Fixation data in the Pupil Capture, what parts should I modify in the code.

I tried to change gaze in filter_messages.m to fixation, but I failed

Matlab crashes after running "pupil_remote_control.m"

Hi there,
I followed the steps in "readme" and everything seemed to be ok but when I tried to run the file, matlab just crashed...

System info:
Windows 10 64
matlab 2019a
ZeroMQ: 4.3.2
PupilCapture: 1.13-29

Thank you

filter_gaze_on_surface real time optimization.

Hi,
does anybody know if /pupil_remote/filter_gaze_on_surface.py script can be optimized for realtime application. I need to capture in real time user's gaze positions and open/close windows using PyQT

pupil_remote_control.m: Variable "req_socket" is not defined

Hello!

I'm getting following error, running pupil_remote_control.m:

Undefined function or variable 'req_socket'.

Error in pupil_remote_control (line 21)
zmq.core.setsockopt(req_socket, 'ZMQ_RCVTIMEO', 1000);

Looking at the Matlab code, i see that the variable 'req_socket' is not defined before. Is this an issue and if, is there an workaround?

best regards!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.