Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

run dotnet core with opencvsharp on ubuntu server 20.04 error

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...