πŸ’» software-dev


user-57c2b9 02 January, 2019, 15:47:20

Is this related to the port number? Do I have to have particular settings in the Pupil Capture software?

papr 02 January, 2019, 15:58:32

@user-57c2b9 No, this is not related to the port number. If you receive data, the IPC is working.

papr 02 January, 2019, 15:59:10

@user-57c2b9 can you send me the modified script? I can quickly test it

user-57c2b9 02 January, 2019, 16:03:20

Sure, what is the best method to send it?

papr 02 January, 2019, 16:03:29

Just drop the file here

user-57c2b9 02 January, 2019, 16:06:23

Here it is:

recv_world_video_frames.py

papr 02 January, 2019, 16:28:53

@user-57c2b9 you need to add cv2.waitKey(1) after each cv2.imshow(). Else opencv will not draw the image into the window.

papr 02 January, 2019, 16:29:43

And an other, less relevant hint: eye 0 is usually the subject's right eye, not the left one.

user-57c2b9 02 January, 2019, 16:45:53

@papr Thanks for the info! I was able to get this example working.

My next question is on timestamps. Can this IPC method be used to associate timestamps to the images? Furthermore, I looked at the documentation on timestamps: https://docs.pupil-labs.com/#data-format

The documentation talks about synchronization and timestamps for Linux and MacOS, but does not mention anything specifically about Windows 10. How do these things work in a Windows 10 system compared to Linux and MacOS?

papr 02 January, 2019, 16:47:10

@user-57c2b9 The msg in line 71 should have a timestamp field. This is the associated timestamp of the image.

user-bab6ad 03 January, 2019, 12:05:32

@papr I asked that right before christmas (bad timing I guess), a small reminder: How do I get messages from the standart plugins like fixations over IPC? Is there somewhere a complete list of that (I did not find it in the documentation?)

papr 03 January, 2019, 12:45:33

@user-bab6ad unfortunately, there is not complete list of that. πŸ˜• In case of fixations, subscribe to fixations

user-bab6ad 03 January, 2019, 13:05:58

@papr ok, that is already something... thx! Would be cool to either have such a list or something to easy grep β€œpattern” for it in the source code to find all?

papr 03 January, 2019, 13:12:32

@user-bab6ad You can subscribe to `` (empty string). This way you will receive everything that is on the IPC. Start by looking at the received topics and filter manually those that you are not interested in.

user-6fdb19 07 January, 2019, 12:03:31

hello everyone does anyone have the link of pupil detection algorithm used by pupil-labs?

marc 09 January, 2019, 15:17:15

@user-6fdb19 The algorithm is described in the original Pupil white paper. You can find the paper here: https://arxiv.org/pdf/1405.0006.pdf The according code is here: https://github.com/pupil-labs/pupil/tree/master/pupil_src/shared_modules/pupil_detectors

user-82e954 10 January, 2019, 03:09:01

Hi all, I am a beginner both in Unity and Pupil Labs. I want to connect the Pupil Labs to Unity, but my project won't be using any HMD. I just can't find any guide online for purely getting the eye movement as an input. Do you have any suggestion or reference?

Thanks in advance.

user-6fdb19 10 January, 2019, 12:42:12

hi mar! thank you very much! is there an equivalent code for matlab?

papr 10 January, 2019, 12:58:53

@user-6fdb19 not that we know of. But you can run Pupil Capture and use Matlab to access Capture's network interface.

papr 10 January, 2019, 12:59:20

@user-82e954 What device are you using if not an HMD?

user-6fdb19 10 January, 2019, 13:25:49

thanks papr!! do you think it will lag something? i will need to perform an real time analysis of pupil dilation (for my phd)

papr 10 January, 2019, 13:37:18

@user-6fdb19 There will be certainly be some network lag. What data do you need access to? And how much lag would be ok for you?

user-6fdb19 10 January, 2019, 13:50:58

i need to perform an real time pupil size estimation... i need at least 30fps in my analysis

papr 10 January, 2019, 13:51:57

Do I understand it correctly, that you want to do your own pupil size estimation? Do you need access to the frame data then?

papr 10 January, 2019, 13:52:29

Alternatively, every pupil datum already includes a pupil size measurement.

user-6fdb19 10 January, 2019, 13:59:09

i can acces this 'pupil datum' in real time on matlab ? i need at least 30 lines of pupil size per second for my analysis

papr 10 January, 2019, 13:59:56

Checkout https://github.com/pupil-labs/pupil-helpers/tree/master/matlab

user-6fdb19 10 January, 2019, 13:59:58

i need this estimation for further concatenate with some task constraints

papr 10 January, 2019, 14:01:05

filter_messages.m subscribes to pupil data by default. You should be receiving pupil datat at full eye camera frame rate

papr 10 January, 2019, 14:01:38

As I said, there might be network lag/delay though.

user-6fdb19 10 January, 2019, 14:07:43

network card or ssd will reduce the delay ?

papr 10 January, 2019, 14:08:36

Not using matlab would reduce the delay as far as I know,

papr 10 January, 2019, 14:10:26

The least delay you would have by creating a plugin for Capture. This is often not necessary since the network api is very fast. The issue here is that the matlab zmq + msgpack implementation is not well supported. I would highly recommend to use python + pyzmq (as in https://github.com/pupil-labs/pupil-helpers/blob/master/python/filter_messages.py).

user-6fdb19 10 January, 2019, 14:20:23

thanks papr! you're very helpful!

user-6fdb19 10 January, 2019, 14:40:16

papr, this code recall real time pupil size? if so, do you know how much lines per second i can get with?

papr 10 January, 2019, 14:41:36

The cameras record with 120/200Hz, depending on your hardware and setup. The network interface is fast enough that you can receive all detected pupil data with the above script.

user-82e954 10 January, 2019, 21:45:05

@papr I'm trying of using the eye tracker for interactive medias, like moving screens or robotic arms. So I think no HMDs are necessary. I just want to use the eye mapped eye movement as an input in Unity.

Thanks for replying btw

wrp 11 January, 2019, 04:49:33

@user-82e954 I would suggest subscribing to the gaze positions in Unity. Please see a description of the network based API in the docs here: https://docs.pupil-labs.com/#interprocess-and-network-communication also see reference implementations that show how to communicate with Pupil software in the pupil-helpers repo: https://github.com/pupil-labs/pupil-helpers/

user-52a72a 12 January, 2019, 11:15:03

Hi, I am currently doing eye tracking in an airport with the standard eye tracking mobile bundle. However, we noticed that the video output is incomplete. For some eye tracking participants, sometimes it could be Eye01 video missing, Eye02 video missing, World camera video missing. For the worst case, no video can be found on the phone (we are 100% the eye tracking is recording videos). But we can’t find any output. Is there any solution to this? Thank you very much.

mpk 12 January, 2019, 13:10:57

@user-52a72a what version of pupil mobile are you running? Usually this happens when the headset disconnects during the recording.

user-52a72a 12 January, 2019, 13:15:19

@mpk , thanks for your quick reply. App version 0.31.0, 200hz binocular High Speed eye Tracker. Phone: Motor Z3 play that was purchased with the mobile Bundle

mpk 12 January, 2019, 13:19:33

Ok. Please update pupil mobile. I think we have a more recent version if I'm not mistaken.

user-52a72a 12 January, 2019, 13:20:14

0.31.0-revert? That’s the version that I am using now

mpk 12 January, 2019, 13:21:19

I'm not sure and currently on the go so I can't check. Have you considered using a laptop instead of phone. It's not ideal but could be a short term solution.

user-52a72a 12 January, 2019, 13:25:15

😭 we are testing on real airport users, getting people to carry a laptop is really challenging. That’s why we bought the mobile bundleπŸ€—πŸ€—

user-52a72a 12 January, 2019, 13:25:50

the strange part is that the user will still have some video, but it’s not the complete set, some would have the left eye video, some would have right eye

user-52a72a 12 January, 2019, 13:26:10

There’s a guy only have world video today

mpk 12 January, 2019, 13:26:28

Yeah, I fully understand. I think if you opt into to the beta program you can use the most recent version of Pupil mobile. That option if available in the play-store.

papr 12 January, 2019, 13:27:11

@user-52a72a Use this link to join/leave the beta program: https://play.google.com/apps/testing/com.pupillabs.pupilmobile

mpk 12 January, 2019, 13:29:38

@alright, I need to leave now. @user-52a72a reach out to info[at]pupil-labs.com via email if the problem persists and we can help you via video ASAP during the week.

user-52a72a 12 January, 2019, 13:30:08

sure, thanks! Will do, have a great day!

user-8779ef 14 January, 2019, 16:28:28

@papr So, is the new gaze mapper for pupiil invis going to be a trained network (ie blackbox!) ?

user-5a3c68 16 January, 2019, 15:19:39

Hi! Today I was trying to play pupil's recorded video on the standard player. But unfortunately, I wasn't managed to start it. Can you help me please?

papr 16 January, 2019, 15:23:57

@user-5a3c68 You need to drop the folder containing the videos onto the gray Player window, not the videos themselves.

user-5a3c68 16 January, 2019, 15:39:42

@papr Thank you for answer, but I meant standard Windows player or VLC for example. World's video doesn't play properly. In VLC it shows 3 different frames from different time stamps. And standart windows player returns error 0xc1010103. Maybe the problem is on my side, I don't know.

papr 16 January, 2019, 15:42:59

@user-5a3c68 Please use the world and eye video exporter plugins in Player to transcode the intermediate video format into something that the standard media players can playback. We make some timing-related changes to the videos during recording. This allows us to seek frame-accurate in Player but breaks compatibility with the standard media players. Exporting the videos reverses the timing-related changes.

user-5a3c68 16 January, 2019, 15:47:59

@papr Ok, I'll try it, thank you. And additionally I have one more issue. I want to calibrate world's camera using chessboard. But it looks like pupil crops it's image, because I can grab 1920x1080 in python from the camera. But video itself has resolution 1280x720. What is the proper way to crop and resize image to get video's resolution? Or maybe I can find camera's intrinsic parameters somwere else?

papr 16 January, 2019, 15:50:08

@user-5a3c68 Capture comes with prerecorded camera intrinsics estimations. Additionally, you can recalibrate using the Camera Intrinsics Estimation plugin in Capture. These are the prerecorded intrinsics: https://github.com/pupil-labs/pupil/blob/master/pupil_src/shared_modules/camera_models.py#L24-L128

user-619198 22 January, 2019, 02:20:28

Hi, just started using Pupil and going through setup.

Does anyone here have experience using it with Vizard? https://docs.worldviz.com/vizard/latest/index.htm#Native_support.htm#Eye_tracking

I'm looking through their docs and can't find native support

user-c6ccfa 24 January, 2019, 12:44:12

Hello, I am trying to use pupil on windows and and this is occurring "error: Error executing cmd /u /c "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 && set " with this message "C:\Program was unexpected at this time." From what I am looking up, this is due to some scripting error, but I don't know where/how to fix it

user-c6ccfa 24 January, 2019, 12:44:18

can anyone please help?

papr 24 January, 2019, 12:47:17

@user-c6ccfa Did you modify the source code? Or are you simply following the dependency install instructions?

user-c6ccfa 24 January, 2019, 12:47:55

@papr I followed the instructions and did not modify any source code

papr 24 January, 2019, 12:48:46

@user-c6ccfa Did you look through our closed github issues? If you are lucky, there are related issues that can help you fix the issue.

user-c6ccfa 24 January, 2019, 14:01:24

@papr The closest advice I could find was "Make sure to include vcvarsall.bat to your windows path." @ issues/896

user-c6ccfa 24 January, 2019, 14:02:06

it is on my path, and I'm still not sure how to fix this error

user-c6ccfa 24 January, 2019, 23:47:05

I've found that this error does not occur when using the plain command prompt, and occurs when using the command prompt for visual studio.

End of January archive