Code/HumanoidMocap/Core/Inference/PalmDetection.cs

A simple record type representing a detected palm from a model. Stores detection score, bounding box (X,Y,Width,Height) and an array of landmark points as Vector2.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;

namespace HumanoidMocap.Core.Inference;
using Vector2 = System.Numerics.Vector2;

public sealed record PalmDetection(float Score,float X,float Y,float Width,float Height,Vector2[] Points);