mirror of
https://github.com/cosyneco/MediaPipe.NET.git
synced 2025-05-20 17:06:26 +08:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
// Copyright (c) homuler and Vignette
|
|
// 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;
|
|
|
|
namespace Mediapipe.Net.Examples.OsuFrameworkVisualTests.Visual
|
|
{
|
|
public class TestSceneFaceMeshCpu : OsuFrameworkVisualTestsTestScene
|
|
{
|
|
#pragma warning disable IDE0051
|
|
[BackgroundDependencyLoader]
|
|
private void load(MediapipeDrawable mediapipeDrawable)
|
|
{
|
|
Add(new Container
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Children = new Drawable[]
|
|
{
|
|
new Box
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Colour = Color4Extensions.FromHex(@"272727"),
|
|
},
|
|
mediapipeDrawable,
|
|
},
|
|
});
|
|
mediapipeDrawable.Start();
|
|
}
|
|
#pragma warning restore IDE0051
|
|
}
|
|
}
|