sdcb / PaddleSharp

.NET/C# binding for Baidu paddle inference library and PaddleOCR
Apache License 2.0
1.05k stars 197 forks source link

linux运行报错: System.DllNotFoundException #2

Closed cuiliang closed 2 years ago

cuiliang commented 2 years ago
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'paddle_inference_c' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libpaddle_inference_c: cannot open shared object file: No such file or directory
   at Sdcb.PaddleInference.Native.PaddleNative.PD_ConfigCreate()
   at Sdcb.PaddleInference.PaddleConfig..ctor()
   at Sdcb.PaddleOCR.PaddleOcrDetector..ctor(String modelDir)
   at Sdcb.PaddleOCR.PaddleOcrAll..ctor(String modelPath, String labelFilePath)
   at LocalPaddleOcr.Program.Main(String[] args) in /home/cuiliang/dotnetocr/Program.cs:line 30
   at LocalPaddleOcr.Program.<Main>(String[] args)
sdcb commented 2 years ago

Directly deploy in Linux environment requires compiled OpenCvSharp4 native library and paddlepaddle inference C library(and all it's dependencies).