private async Task EvaluateFrame(Windows.Media.VideoFrame videoFrame) { try { // Get the current network prediction from model and input frame var result = await _networkModel.EvaluateVideoFrameAsync(videoFrame); // Update the UI with prediction UnityEngine.WSA.Application.InvokeOnAppThread(() => { StatusBlock.text = $"Label: {result.PredictionLabel} " + $"Probability: {Math.Round(result.PredictionProbability, 3) * 100}% " + $"Inference time: {result.PredictionTime} ms"; }, false); } catch (Exception ex) { Debug.Log($"Exception {ex}"); } }