Skip to content
New issue

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

Unable to load shared library 'DlibDotNetNativeDNN' #256

Open
khinklenj opened this issue Jun 29, 2021 · 1 comment
Open

Unable to load shared library 'DlibDotNetNativeDNN' #256

khinklenj opened this issue Jun 29, 2021 · 1 comment
Assignees
Labels

Comments

@khinklenj
Copy link

Summary of your issue

When testing the below code on Windows 10 everything works
When testing the below code on MacOS Version 11.4

I get the following error "Unable to load shared library 'DlibDotNetNativeDNN'"

Environment

Nuget Packages DlibDotNet 19.21.0.20210302

Write your environment.

What did you do when you faced the problem?

//write here

Example code:

        string file = "FoOYR.jpg";
        using (var win = new ImageWindow()) <------- Error Line
        using (var detector = Dlib.GetFrontalFaceDetector())
        using (var img = Dlib.LoadImage<byte>(file))
        {
            Dlib.PyramidUp(img);

            var dets = detector.Operator(img);
            Console.WriteLine($"Number of faces detected: {dets.Length}");

            win.ClearOverlay();
            win.SetImage(img);
            win.AddOverlay(dets, new RgbPixel { Red = 255 });

            Console.WriteLine("hit enter to process next frame");
            Console.ReadKey();
        }

Output:

Error on MacOS

What did you intend to be?

I would like to code to work on both Windows10 and MacOS

@takuya-takeuchi
Copy link
Owner

@khinklenj
ImageWindow requires X11.
You can refer this.
https://github.com/takuya-takeuchi/DlibDotNet/wiki/Tutorial-for-MacOS#install-x11

P.S.
Please close issue if you resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants