我正在尝试运行为服务编写的单元测试,该服务提供人脸检测功能。但是,当它尝试使用 $ Dlib.GetFrontalFaceDetector() 引发异常
System.DllNotFoundException: Unable to load shared library 'DlibDotNetNative' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libDlibDotNetNative: cannot open shared object file: No such file or directory
set LD_DEBUG =。/ home / userhome / .nuget / packages / dlibdotnet / 19.16.0.20190223 / lib / netstandard2.0 /
public void bool DetectFace()
{
using (var detector = Dlib.GetFrontalFaceDetector())
using (var img = Dlib.LoadImage<Byte>(path))
{
<smth>
}
<smth>
}
答案 0 :(得分:0)
最后,我找到了一个决定:
ldd ./libDlibDotNetNative.so
在输出中:libopenblas.o.0-找不到
sudo apt-get install libopenblas-base
利润!