private void CameraInitialized(HoloLensCamera sender, bool initializeSuccessful)
        {
            DebugLog("HoloLensCamera initialized");
            StreamDescription streamDesc = sender.StreamSelector.Select(StreamCompare.EqualTo, 1280, 720).StreamDescriptions[0];

            sender.Start(streamDesc);
        }
예제 #2
0
    private void OnCameraInitialized(HoloLensCamera sender, bool initializeSuccessful)
    {
        // choose the first video with 720p resolution
        StreamDescription streamDesc = pvCamera.StreamSelector.Select(StreamCompare.EqualTo, 1280, 720).StreamDescriptions[0];

        Debug.Log($"Selecting {streamDesc.Resolution.Width}x{streamDesc.Resolution.Height}@{streamDesc.Resolution.Framerate}fps");

        // initialized, but not running
        pvCamera.Start(streamDesc);

        Debug.Log("Starting camera");
        startCamera = true;
    }