forked from guygodin/VirtualDesktop.VRCFaceTracking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFaceState.cs
More file actions
35 lines (31 loc) · 1.1 KB
/
FaceState.cs
File metadata and controls
35 lines (31 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System.Runtime.InteropServices;
namespace VirtualDesktop.FaceTracking
{
[StructLayout(LayoutKind.Sequential)]
public unsafe struct FaceState
{
#region Constants
public const int ExpressionCount = 70;
public const int ConfidenceCount = 2;
#endregion
#region Static Fields
public static readonly FaceState Identity = new FaceState { LeftEyePose = Pose.Identity, RightEyePose = Pose.Identity };
#endregion
#region Fields
[MarshalAs(UnmanagedType.I1)]
public bool FaceIsValid;
[MarshalAs(UnmanagedType.I1)]
public bool IsEyeFollowingBlendshapesValid;
public fixed float ExpressionWeights[ExpressionCount];
public fixed float ExpressionConfidences[ConfidenceCount];
[MarshalAs(UnmanagedType.I1)]
public bool LeftEyeIsValid;
[MarshalAs(UnmanagedType.I1)]
public bool RightEyeIsValid;
public Pose LeftEyePose;
public Pose RightEyePose;
public float LeftEyeConfidence;
public float RightEyeConfidence;
#endregion
}
}