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

为什么在确定scan_start_y时要减去50个像素 #1230

Open
yuanjingsong opened this issue Mar 28, 2018 · 3 comments
Open

为什么在确定scan_start_y时要减去50个像素 #1230

yuanjingsong opened this issue Mar 28, 2018 · 3 comments

Comments

@yuanjingsong
Copy link

yuanjingsong commented Mar 28, 2018

你好!最近在看wechat_jump_auto_IOS的源码学习,但可能不是最新版的源码。发现在确定scan_start_y时,遇到的不纯色的点时,y方向减去了50个像素来确定的scan_start_y, 为什么要减去一部分的像素?

@leon332157
Copy link
Collaborator

@yuanjingsong 好像是因为怕遇到影子吧,具体我没有开发我不太清楚,你可以翻一下issue。。。

@F-loat
Copy link
Contributor

F-loat commented Apr 1, 2018

应该是为了避免小程序菜单按钮的影响

@boymag
Copy link

boymag commented May 23, 2019

第一次Y轴方向每隔50个像素区间来扫描,当有扫到匹配的结果时。�可能已经有超过棋子的头部。所以需要减去50个像素保证在棋子外,scan_start_y作为新的Y轴坐标,开始第二次每隔1个像素扫描。

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

4 participants