labstreaminglayer/App-PupilLabs

Camera capture info needed in header

cboulay opened this issue · 3 comments

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

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.

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

papr commented

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