The code works fine on macos and windows, but not sure why it cannot work on ubuntu server. I did follow some documentation from https://github.com/shimat/opencvsharp but so sad it not working, missing quite a lot of ".so" file after execute ldd libOpenCvSharpExtern.so
System.DllNotFoundException: Unable to load shared library 'OpenCvSharpExtern' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libOpenCvSha>
at OpenCvSharp.NativeMethods.redirectError(CvErrorCallback errCallback, IntPtr userdata, IntPtr& prevUserdata)
at OpenCvSharp.ExceptionHandler.RegisterExceptionCallback()
at OpenCvSharp.NativeMethods.LoadLibraries(IEnumerable`1 additionalPaths)
at OpenCvSharp.NativeMethods..cctor()
--- End of inner exception stack trace ---
at OpenCvSharp.NativeMethods.objdetect_CascadeClassifier_newFromFile(String fileName, IntPtr& returnValue)
at OpenCvSharp.CascadeClassifier..ctor(String fileName)
at Base.CensorHelper.GetClassifier(CensorOption option) in /home/AdminAPI/findSgMaidAPIAdmin/SG_Maid_Admin_API/Base/CensorHelper.cs:line 21
at Base.CensorHelper.DetectMultiScale(Bitmap _image, CensorOption censorOption, Boolean isMulti) in /home/AdminAPI/findSgMaidAPIAdmin/SG_Maid_Admin_API/Base/CensorHelper.cs:line 156
at Base.CensorHelper.BlurAll(Bitmap _image, CensorOption censorOption, Func`2 blurComplete) in /home/AdminAPI/findSgMaidAPIAdmin/SG_Maid_Admin_API/Base/CensorHelper.cs:line 98```
question from:
https://stackoverflow.com/questions/65860680/run-dotnet-core-with-opencvsharp-on-ubuntu-server-20-04-error 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…