takuya-takeuchi / FaceRecognitionDotNet

The world's simplest facial recognition api for .NET on Windows, MacOS and Linux
MIT License
1.27k stars 309 forks source link

Error The type initializer for 'DlibDotNet.NativeMethods' threw an exception #125

Closed khinklenj closed 4 years ago

khinklenj commented 4 years ago

Hi I am getting the following error message. The type initializer for 'DlibDotNet.NativeMethods' threw an exception. stack: at DlibDotNet.NativeMethods.get_frontal_face_detector() at FaceRecognitionDotNet.FaceRecognition..ctor(String directory) at FaceRecognitionDotNet.FaceRecognition.Create(String directory)

I am running a windows 10 machine with an onboard graphics its Intel hd graphic 2000 The cpu is an intel i7

Please let me know how i can correct this

Thanks Keith

takuya-takeuchi commented 4 years ago

@khinklenj As long as I remember, you should be successful to run FRDN.

https://github.com/takuya-takeuchi/FaceRecognitionDotNet/issues/113 https://github.com/takuya-takeuchi/FaceRecognitionDotNet/issues/105 https://github.com/takuya-takeuchi/FaceRecognitionDotNet/issues/78

Please write down what you changed, e.g. OS, package version etc.

And you can detail error code in Event Viewer. It could be helpful.

khinklenj commented 4 years ago

The issue was because of a on board gpu using an outdated driver