OpenFace – a state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation.
Other
6.92k
stars
1.85k
forks
source link
An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in CppInerop.dll. (std::length_error at memory location) #784
Describe the bug
i try detect face in windows 10. visual studio 2017. use c# .net 4.6.1. use webcam but has error.
Code init.
var model = new FaceModelParameters("", true, false, false);
model.optimiseForImages();
detector = new FaceDetector(model.GetHaarLocation(), model.GetMTCNNLocation());
Code detect
//detec face with MTCNN
var rects = new List<System.Windows.Rect>();
var confidences = new List<float>();
var bmp = inputHasFace.ToBitmap(PixelFormat.Format32bppArgb);
detector.DetectFacesMTCNN(rects, new RawImage(bmp), confidences);
Describe the bug i try detect face in windows 10. visual studio 2017. use c# .net 4.6.1. use webcam but has error. Code init.
Code detect
Debug