New basic signs model

This commit is contained in:
Jerome Coudron
2023-05-07 21:00:52 +00:00
committed by Jelle De Geest
parent 06aa9206ac
commit 43887af670
111 changed files with 952 additions and 329 deletions

View File

@@ -16,12 +16,7 @@ public class KeypointManagerEmbedding
private List<int> hand_indices = new List<int> { 0, 8, 7, 6, 5, 12, 11, 10, 9, 16, 15, 14, 13, 20, 19, 18, 17, 4, 3, 2, 1 };
private static int BUFFER_SIZE = 10;
private List<List<List<float>>> keypointsBuffer;
public KeypointManagerEmbedding()
{
keypointsBuffer = new List<List<List<float>>>();
}
private List<List<List<float>>> keypointsBuffer = new List<List<List<float>>>();
private (List<float>, List<float>) NormalizeHand(List<float> handX, List<float> handY)
{
@@ -162,6 +157,7 @@ public class KeypointManagerEmbedding
if (poseLandmarks == null || (leftHandLandmarks == null && rightHandLandmarks == null))
{
keypointsBuffer.Clear();
return;
}
@@ -259,5 +255,4 @@ public class KeypointManagerEmbedding
}
return keypointsBuffer;
}
}