I'm trying to run this code from GitHub (Kinectv2HeartRate) which basically calculates the heart rate of the person in front of the kinect. But once it recognizes a face it returns this error
An exception of type 'System.Runtime.InteropServices.SEHException' occurred in Microsoft.Kinect.Face.dll but was not handled in user code Additional information: External component has thrown an exception.
at this line of code:
m_FaceSource = new Microsoft.Kinect.Face.FaceFrameSource(
m_Sensor, m_CurrentTrackingId,
Microsoft.Kinect.Face.FaceFrameFeatures.BoundingBoxInColorSpace |
Microsoft.Kinect.Face.FaceFrameFeatures.BoundingBoxInInfraredSpace |
Microsoft.Kinect.Face.FaceFrameFeatures.PointsInColorSpace |
Microsoft.Kinect.Face.FaceFrameFeatures.PointsInInfraredSpace
);
I've run the FaceBasics code and it gives the same error, but the .exe runs perfectly. Can someone please shed some light on this problem for me?