We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vs 2019
System.Runtime.InteropServices.SEHException:An exception occurred in an external component
public MainForm() { this.InitializeComponent(); this._ShapePredictor = ShapePredictor.Deserialize("shape_predictor_81_face_landmarks.dat"); this._BackgroundWorker = new BackgroundWorker(); this._BackgroundWorker.DoWork += this.BackgroundWorkerOnDoWork; }
public static ImageWindow.OverlayLine[] RenderFaceDetections(IEnumerable shapes) { return RenderFaceDetections(shapes, new RgbPixel { Green = 255 }); }
public static ImageWindow.OverlayLine[] RenderFaceDetections(IEnumerable<FullObjectDetection> detection, RgbPixel color) { if (detection == null) throw new ArgumentNullException(nameof(detection)); using (var vectorIn = new StdVector<FullObjectDetection>(detection)) using (var vectorOut = new StdVector<ImageWindow.OverlayLine>()) { NativeMethods.render_face_detections(vectorIn.NativePtr, ref color, vectorOut.NativePtr); return vectorOut.ToArray(); } }
The text was updated successfully, but these errors were encountered:
@takuya-takeuchi Please attach a minimum sample program to reproduce it.
I guess exception occurs in BackgroundWorkerOnDoWork but I'm not sure.
Sorry, something went wrong.
@147906825 Sorry. I found that this program is examples\WinForms\FaceLandmarkDetection.
But this program works fine by using latest DlibDotNet.
takuya-takeuchi
No branches or pull requests
Summary of your issue
Environment
vs 2019
What did you do when you faced the problem?
System.Runtime.InteropServices.SEHException:An exception occurred in an external component
Example code:
public MainForm()
{
this.InitializeComponent();
this._ShapePredictor = ShapePredictor.Deserialize("shape_predictor_81_face_landmarks.dat");
this._BackgroundWorker = new BackgroundWorker();
this._BackgroundWorker.DoWork += this.BackgroundWorkerOnDoWork;
}
public static ImageWindow.OverlayLine[] RenderFaceDetections(IEnumerable shapes)
{
return RenderFaceDetections(shapes, new RgbPixel { Green = 255 });
}
Output:
System.Runtime.InteropServices.SEHException:An exception occurred in an external component
What did you intend to be?
The text was updated successfully, but these errors were encountered: