mirror of
https://github.com/cosyneco/MediaPipe.NET.git
synced 2025-08-24 16:52:08 +08:00
21 lines
720 B
C#
21 lines
720 B
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 System.Runtime.Versioning;
|
|
using Mediapipe.Net.Framework.Packet;
|
|
using Mediapipe.Net.Framework.Protobuf;
|
|
|
|
namespace Mediapipe.Net.Calculators
|
|
{
|
|
[SupportedOSPlatform("Linux"), SupportedOSPlatform("Android")]
|
|
public sealed class HandGpuCalculator : GpuCalculator<NormalizedLandmarkListPacket, NormalizedLandmarkList>
|
|
{
|
|
public HandGpuCalculator() : base(
|
|
graphPath: "mediapipe/graphs/hand_tracking/hand_tracking_desktop_live_gpu.pbtxt",
|
|
secondaryOutputStream: "hand_landmarks")
|
|
{
|
|
}
|
|
}
|
|
}
|