DlibDotNet icon indicating copy to clipboard operation
DlibDotNet copied to clipboard

DlibDotNetNativeDnn missing

Open Robotuner opened this issue 4 years ago • 0 comments

Summary of your issue

I am attempting to use the DLibDotNet.UWP on a Windows10/VS2019/WPF application. The nuget package that is installed is DlibDotNet.UWP and it appears only the DLibDotNet.dll is installed in the References section.

I have the following code snippet:

using (var fd = Dlib.GetFrontalFaceDetector())
{
    var img = Dlib.LoadImage<RgbPixel>(FilePath);

    // find all faces in the image
    var faces = fd.Operator(img);
    foreach (var face in faces)
    {
        // draw a rectangle for each face
        Dlib.DrawRectangle(img, face, color: new RgbPixel(0, 255, 255), thickness: 4);
    }

    Dlib.SaveBmp(img, @"d:\\junk\temp.jpg");
    return faces.Length > 0;
}

I am getting DllNotFoundException: Unable to load DLL 'DlibDotNetNativeDnn': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

at Dlib.GetFrontalFaceDetector()

Where can I find the DlibDotNetNativeDnn module?

Thanks

Robotuner avatar Jan 14 '21 15:01 Robotuner