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

cv模块OpenCV对齐问题及单元测试bug #3250

Open
jules-ai opened this issue Feb 20, 2025 · 0 comments
Open

cv模块OpenCV对齐问题及单元测试bug #3250

jules-ai opened this issue Feb 20, 2025 · 0 comments
Labels
bug Something isn't working mnncv mnn's cv lib

Comments

@jules-ai
Copy link
Contributor

jules-ai commented Feb 20, 2025

在使用cv模块时,发现dilategetStructuringElement函数(尤其是MORPH_ELLIPSE)与OpenCV的对应函数结果无法对齐。另外由于单元测试的bug,导致无法测出前述问题。

具体描述:

  1. getStructuringElement不一致,复现参数: testEnv.mnnDst = getStructuringElement(2, {25, 25});
  2. dilate结果不一致,即使注入相同的参数;
  3. 在对getStructuringElement返回结果进行比较时,使用了与其他图像函数相同的带数值容忍度的_equal函数。然而,该函数的返回值是一个二值的mask(仅0和1),即使两个完全相反的mask,也可能因为误差容忍值而误判为通过。

第二点之前也有其他人提过: #1902

@jxt1234 jxt1234 added mnncv mnn's cv lib bug Something isn't working labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mnncv mnn's cv lib
Projects
None yet
Development

No branches or pull requests

2 participants