简体   繁体   中英

SEHException Kinect V2

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?

I'm assuming m_sensor and m_CurrentTrackingId are not null because we wouldn't be able to guess reason behind it.

So we are left with features.

Visiting MSDN reveals requirement to use these features. 在此处输入图片说明

This link should help you achieve adding lib file.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM