Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UwpYoloCameraFrameEval.cs
private async void CameraHelper_FrameArrived(object sender, Microsoft.Toolkit.Uwp.Helpers.FrameEventArgs e)
{
if (e?.VideoFrame?.SoftwareBitmap == null) return;
var input = new TinyYoloV2ModelInput {image = e.VideoFrame};
var output = await _model.EvaluateAsync(input);
Debug.WriteLine(output.grid.ToString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.