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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.