Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

与OpenCvSharp新版本有冲突 #113

Open
linxf opened this issue Jan 3, 2025 · 3 comments
Open

与OpenCvSharp新版本有冲突 #113

linxf opened this issue Jan 3, 2025 · 3 comments

Comments

@linxf
Copy link

linxf commented Jan 3, 2025

Describe the bug

在 OpenCvSharp4 4.10.0.20240616 版本下可以稳定运行。
但nuget更新新版本后就不稳定,运行PaddleOcrAll.Run()就可能报错。(与 OpenCvSharp4.runtime.win 版本无关,可以更新到最新版本)

Steps to reproduce the bug

  1. 更新OpenCVSharp4 到 4.10.0.20240616 之后的版本 4.10.0.20241107
  2. 进行测试有概率抛出异常System.ExecutionEngineException,多次运行PaddleOcrAll.Run()必然会遇到。
    <PackageReference Include="OpenCvSharp4" Version="4.10.0.20241108" />
    <PackageReference Include="OpenCvSharp4.runtime.win" Version="4.10.0.20241108" />
    <PackageReference Include="Sdcb.PaddleInference.runtime.win64.mkl" Version="2.6.1" />
    <PackageReference Include="Sdcb.PaddleOCR" Version="2.7.0.3" />
    <PackageReference Include="Sdcb.PaddleOCR.Models.Local" Version="2.7.0" />


    FullOcrModel model = LocalFullModels.EnglishV4;
    using var all= new PaddleOcrAll(model)
    {
        AllowRotateDetection = false,
        Enable180Classification = false,
    };
    using (var src = new Mat(srcImagePath, ImreadModes.Color))
    {
        all.Run(src);
    }

Expected behavior

No response

Screenshots

No response

Release version

No response

IDE

No response

OS version

No response

Additional context

No response

@n0099
Copy link
Contributor

n0099 commented Jan 3, 2025

该异常有无MessageData?

@linxf
Copy link
Author

linxf commented Jan 4, 2025

image

@n0099
Copy link
Contributor

n0099 commented Jan 4, 2025

什么经典未知错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants