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

我自己截取的模板 做匹配 效果比较不理想 #21

Open
zouwen198317 opened this issue Aug 30, 2022 · 7 comments
Open

我自己截取的模板 做匹配 效果比较不理想 #21

zouwen198317 opened this issue Aug 30, 2022 · 7 comments

Comments

@zouwen198317
Copy link

我自己截取的模板 做匹配 效果比较不理想,不知道什么原因。

@zouwen198317
Copy link
Author

image
我就是从本图 截取 然后 去匹配 都匹配不出来,不知道什么原因

@DennisLiu1993
Copy link
Owner

Scale明顯不一樣了 換個一樣的吧

@zouwen198317
Copy link
Author

你是说模板的 width 和height scale 要和 src 图像 一样吗? 你怎么一看就知道scale 不一样? 我是从原图扣出来的去匹配, 这个有什么讲究吗

@DennisLiu1993
Copy link
Owner

不是長寬
匹配的紅色框是以模板的尺寸去畫的,你這張圖紅框和目標物顯然不同尺寸,所以你說從原圖擷取顯然是哪裡錯了

@zouwen198317
Copy link
Author

是我搞错了,我模板是32位 rgba图像了, 而src 是 24位 rgb。用微信截图,帮我多了一个通道。

@DennisLiu1993
Copy link
Owner

通道不是問題,讀進去都會轉成grey,是截圖有錯

@schild
Copy link

schild commented Jul 21, 2023

不是長寬 匹配的紅色框是以模板的尺寸去畫的,你這張圖紅框和目標物顯然不同尺寸,所以你說從原圖擷取顯然是哪裡錯了

不支持不同尺寸的匹配吗

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

3 participants