Webcam Camera - DFKI-Interactive-Machine-Learning/ARETT GitHub Wiki
The webcam camera consists of an Unity camera which approximates the position, rotation and projection matrix of the camera integrated into the HoloLens 2 device. It is disabled so it does not render the scene, instead it is used to calculate the gaze position on the image of the integrated camera. On enable it is attached to the main Unity camera with the configured relative position and rotation.
Configuration
The camera is preconfigured to match the camera integrated into the HoloLens 2 used for testing. While this setting should match the integrated camera of other HoloLens 2 it needs to be verified before relying on the generated gaze position. For example the resolution of the render texture might differ from the used resolution of the camera.