labstreaminglayer / App-PupilLabs

Implementations of LSL relays for Pupil Labs eye trackers
https://pupil-labs.com
GNU Lesser General Public License v3.0
17 stars 11 forks source link

Camera capture info needed in header #8

Open cboulay opened 4 years ago

cboulay commented 4 years ago

So the xdf storage is more complete, it would be good if during construct_streaminfo, we also added capture device info to the header, especially frame_size and intrinsics.

@papr, obviously you know this better than anyone, but if you don't have time to do this then please point me to where I can find an example of how to access capture details from a plugin, if such a thing exists. Is it just g_pool.capture.frame_size and g_pool.capture.intrinsics?

papr commented 4 years ago

These are the correct attributes. Please be aware that they can change during runtime. Please be also aware that the intrinsics can be of two different types with a different amount of parameters: radial and fisheye.

You can find more information in the camera_models.py file.

cboulay commented 4 years ago

Just curious, what would cause them to change during runtime?

papr commented 4 years ago

For example if the user changes the resolution during runtime. Or if the user runs the Camera Intrinsics Estimation plugin.