【问题标题】:Puma .NET exception 'System.Runtime.InteropServices.COMException'Puma .NET 异常“System.Runtime.InteropServices.COMException”
【发布时间】:2014-08-18 08:48:13
【问题描述】:

尝试识别文件夹中的一组图像(使用 Puma .NET OCR 库),成功识别第一张图像,但之后出现错误:

An unhandled exception of type 'System.Runtime.InteropServices.COMException' 
occurred in Puma.Net.dll

Additional information: <0x00000000>: ?????? ???.

我有一个特殊的识别类,错误发生在这一行:

Puma.Net.PumaPage inputFile = new Puma.Net.PumaPage(imagePath);

我找到了this linkthis one,但它们似乎对我没有帮助。

谢谢

【问题讨论】:

    标签: c# .net ocr


    【解决方案1】:

    我通过使用'using'语句找到了答案

     using(Puma.Net.PumaPage inputFile = new Puma.Net.PumaPage(imagePath))
            {
            }
    

    【讨论】:

    • 我在我的机器上试过这个,但没有运气。我收到错误 Puma.Net.dll 中出现“System.Runtime.InteropServices.COMException”类型的异常,但未在用户代码中处理其他信息::未加载库 PUMA.DLL。
    • 尝试删除库,然后重新包含它(适用于 NuGet PM)
    • 1.检查环境路径变量是否包含此路径:“C:\Program Files (x86)\Puma.NET\COM Server” 2. 授予执行用户读/写 Com 服务器的权限。
    猜你喜欢
    • 1970-01-01
    • 2016-06-09
    • 1970-01-01
    • 2010-10-01
    • 2015-05-04
    • 2015-11-08
    • 1970-01-01
    • 2011-12-11
    • 1970-01-01
    相关资源
    最近更新 更多