raoyutian / PaddleOCRSharp

PaddleOCRSarp是一个基于百度飞桨PaddleOCR的C++代码修改并封装的.NET的OCR工具类库。包含文本识别、文本检测、表格识别功能。本项目针对小图识别不准的情况下做了优化,比飞桨原代码识别准确率有所提高。 包含总模型仅8.6M的超轻量级中文OCR,单模型支持中英文数字组合识别、竖排文本识别、长文本识别。同时支持多种文本检测。
Apache License 2.0
606 stars 99 forks source link

无法加载 DLL“PaddleOCR.dll”: 找不到指定的模块 #2

Closed kylecj77 closed 1 year ago

kylecj77 commented 2 years ago

Hi Raoyutian 下面是我调用paddlepcr遇到的问题,请帮忙看看。。谢谢

System.DllNotFoundException HResult=0x80131524 Message=无法加载 DLL“PaddleOCR.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。 Source=PaddleOCRSharp StackTrace: 在 PaddleOCRSharp.PaddleOCREngine.Initialize(String det_infer, String cls_infer, String rec_infer, String keys, OCRParameter parameter) 在 PaddleOCRSharp.PaddleOCREngine..ctor(OCRModelConfig config, OCRParameter parameter) 在 D:\Worke\builds\Paddle\PaddleOCRSharp-main\PaddleOCRSharp\PaddleOCREngine.cs 中: 第 55 行 在 RSADemo.RSADetct.RSAOCR(String ImPath, String OutputSaveImPath, String& Result) 在 D:\Worke\builds\Paddle\RSADetctText\RSADetctText\RSADemo\RSADetct.cs 中: 第 37 行 在 RSADemo.Form1.button1_Click(Object sender, EventArgs e) 在 D:\Worke\builds\Paddle\RSADetctText\RSADetctText\RSADemo\Form1.cs 中: 第 27 行 在 System.Windows.Forms.Control.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnClick(EventArgs e) 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 在 System.Windows.Forms.Control.WndProc(Message& m) 在 System.Windows.Forms.ButtonBase.WndProc(Message& m) 在 System.Windows.Forms.Button.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) 在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 在 RSADemo.Program.Main() 在 D:\Worke\builds\Paddle\RSADetctText\RSADetctText\RSADemo\Program.cs 中: 第 19 行

raoyutian commented 2 years ago

加QQ群318860399讨论。

kylecj77 commented 2 years ago

加QQ群318860399讨论。

加不了,,,QQ群设置了不能申请加入

3400442579 commented 2 years ago

我也出现相同的错误 ver:2.0.2

ym9288 commented 1 year ago

还有你的启动程序编译平台改成X64就可以了,