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

使用FeatureMatch方法会导致报错 #226

Closed
Jash1787 opened this issue May 13, 2024 · 2 comments
Closed

使用FeatureMatch方法会导致报错 #226

Jash1787 opened this issue May 13, 2024 · 2 comments

Comments

@Jash1787
Copy link

MaaFramework版本为1.7.3,使用MaaPracticeBoilerplate模板进行测试。任务流水线代码如下所示:

{
    "PatHead": {
        "recognition": "FeatureMatch",
        "template": "icon_pathead.png"
    }
}

在控制台会出现以下错误并退出控制台:

OpenCV: terminate handler is called! The last OpenCV error is:
OpenCV(4.8.0) Error: Assertion failed (scn + 1 == m.cols) in cv::perspectiveTransform, file D:\a\MaaDeps\MaaDeps\vcpkg\buildtrees\opencv4\src\4.8.0-2bf495557d.clean\modules\core\src\matmul.dispatch.cpp, line 550

使用TemplateMatch和OCR则能正常运行。
maa.log

@MistEO
Copy link
Member

MistEO commented May 16, 2024

崩溃时的模拟器画面,截张原图看一下。这个 icon_pathead.png 也发一下看看

@Jash1787
Copy link
Author

Jash1787 commented May 17, 2024

我重新进行测试,发现问题出在template使用的图像文件。重新制作template或使用其他人提供的图源后问题就解决了。

附件中附上有问题的icon_pathead.png,该图档是用BS5截图后用WIN10内建的Paint 3D加绿幕处理的,只在FeatureMatch时出问题。
icon_pathead

@MistEO MistEO closed this as completed Sep 13, 2024
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