Files
Adwyzz (OLED Edition) cc7ed1ebd0 Fix critical memory leak (#22)
* fix examples (or at least try to)

* stuff

* Better dispose that

* Add video input options because I'm selfish

* THIS ONE MOTHERFUCKING FOR LOOP

* Remove unnecessary using

* Fix osu framework example

* Use stable `Google.Protobuf` package

* Add options to osu framework example

* Use same options on all examples

* Add framerate option

* Use framerate option

Co-authored-by: Speykious <speykious@gmail.com>
2022-02-21 17:07:15 +01:00

43 lines
1.3 KiB
C#

// Copyright (c) homuler and The Vignette Authors
// This file is part of MediaPipe.NET.
// MediaPipe.NET is licensed under the MIT License. See LICENSE for details.
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osuTK;
namespace Mediapipe.Net.Examples.OsuFrameworkVisualTests.Visual
{
public class TestSceneFaceMeshCpu : OsuFrameworkVisualTestsTestScene
{
#pragma warning disable IDE0051
[BackgroundDependencyLoader]
private void load()
{
Add(new Container
{
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4Extensions.FromHex(@"272727"),
},
new MediapipeDrawable
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(1280, 720),
FillMode = FillMode.Fit,
},
},
});
}
#pragma warning restore IDE0051
}
}