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

ADB 识别不到 single_mode_class_detail_button #135

Closed
BaiZero opened this issue Aug 6, 2021 · 37 comments
Closed

ADB 识别不到 single_mode_class_detail_button #135

BaiZero opened this issue Aug 6, 2021 · 37 comments
Labels
bug Something isn't working

Comments

@BaiZero
Copy link

BaiZero commented Aug 6, 2021

No description provided.

@BaiZero BaiZero closed this as completed Aug 6, 2021
@BaiZero BaiZero changed the title 大佬有没有办法把那个验证关掉,明明很都准的,但是要暂停。我是菜鸡 。我懂了。 Aug 6, 2021
@BaiZero BaiZero reopened this Aug 6, 2021
@BaiZero BaiZero changed the title 。我懂了。 single_mode_class_detail_button.png这个东西每次都要重新设置马? Aug 6, 2021
@BaiZero
Copy link
Author

BaiZero commented Aug 6, 2021

我好像小礼帽和大和的截图不兼容、、、截图小礼帽能用,但是大和就。

@NateScarlet
Copy link
Owner

改模版要跟着改 .pos.png 不然位置不对会被无视

@NateScarlet NateScarlet added question Further information is requested invalid This doesn't seem right labels Aug 7, 2021
@NateScarlet
Copy link
Owner

如果你自己动核心代码 那出问题由你自己维护

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

emmmmm拿总是卡在这个 single_mode_class_detail_button.png 该怎么办。

@NateScarlet
Copy link
Owner

不知道 你什么信息都没给

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

无法识别到这个图片,就是粉丝数这个识别不到,我注意到好像每个角色里那个粉丝里 i 的圈颜色都不一样。是不是因为这个。

@NateScarlet
Copy link
Owner

NateScarlet commented Aug 7, 2021

https://github.com/NateScarlet/auto-derby#%E9%97%AE%E9%A2%98%E5%8F%8D%E9%A6%88

GitHub
🐎🖥《赛马娘》(ウマ娘: Pretty Derby)辅助脚本 . Contribute to NateScarlet/auto-derby development by creating an account on GitHub.

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

日常训练模式下 其他都能识别到,就这个一直不行用的雷电模拟器,1080 1920 分辨率

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

要日志马?

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

DEBUG [2021-08-07 07:31:22]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(116, 156), similarity=0.364
INFO [2021-08-07 07:31:22]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)
DEBUG [2021-08-07 07:31:24]:auto_derby.template:45: screenshot
DEBUG [2021-08-07 07:31:24]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(116, 156), similarity=0.364
INFO [2021-08-07 07:31:24]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)
DEBUG [2021-08-07 07:31:26]:auto_derby.template:45: screenshot
DEBUG [2021-08-07 07:31:26]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(116, 156), similarity=0.364
INFO [2021-08-07 07:31:26]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)

@NateScarlet
Copy link
Owner

last_screenshot 发一下

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

last_screenshot local

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

卡在这里不动了

@NateScarlet
Copy link
Owner

这个和圈的颜色没关系 模版就只是个i
原因是样本从DMM客户端取的 分辨率不一样导致匹配不同

@NateScarlet NateScarlet changed the title single_mode_class_detail_button.png这个东西每次都要重新设置马? ADB 识别不到 single_mode_class_detail_button Aug 7, 2021
@NateScarlet NateScarlet reopened this Aug 7, 2021
@NateScarlet NateScarlet added bug Something isn't working and removed invalid This doesn't seem right question Further information is requested labels Aug 7, 2021
@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

然后我重新从模拟器全屏接了下图。但是只能用一个角色。到了她就不行了。

@NateScarlet
Copy link
Owner

你重新截图能用就很神奇 模版要求的是从540宽的图上截

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

小栗帽改过一会 ,然后小栗帽估计无法识别两次G1任务。然后试试别的角色

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

?真假的?

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

我用以前PCR截图的办法截图的。全屏然后找那个粉丝数i。

@NateScarlet
Copy link
Owner

小栗帽能用 见 #104 #87

adb是实验性的 改完新功能不会用 adb 测试再发布 因为我模拟器开加速器很麻烦

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

不过和你说的一样比较精细的截图,基本只有一个i的符号。我觉得有没有可能是i周围颜色导致i的颜色其实会发生人眼感受不到的变化。

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

明白的。

@NateScarlet
Copy link
Owner

不支持跳识别 因为粉丝数用于基本逻辑
不需要的数据都没识别

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

那看起来只能从原图片上下手脚。。我还说可以找一个类似图片代替,每次找到同一界面下其他图片,然后点击某个位置,打开粉丝数。 有没有可能利用识别比如 详细 或者 训练这两个图片,,单独写一个打开粉丝界面的坐标然后点击。

@NateScarlet
Copy link
Owner

如果模版匹配可以修就没必要增加额外逻辑 逻辑越多越容易出错

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

那确实

@NateScarlet
Copy link
Owner

这个模版在 540 宽的分辨率的匹配度也只有0.9 好像是最初版本在 466 宽的窗口中截图放大过来的那一批模版

NateScarlet added a commit that referenced this issue Aug 7, 2021
@NateScarlet
Copy link
Owner

dev 分支修了 我还加了测试 你试一下

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

重新下载代码对吧。。

NateScarlet added a commit that referenced this issue Aug 7, 2021
@NateScarlet
Copy link
Owner

其实只有 single_mode_class_detail_button.png single_mode_class_detail_button.pos.png 改了

新增的代码都只是测试用的

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

DEBUG [2021-08-07 19:19:25]:auto_derby.template:45: screenshot
DEBUG [2021-08-07 19:19:25]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(115, 155), similarity=0.895
INFO [2021-08-07 19:19:25]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)
DEBUG [2021-08-07 19:19:28]:auto_derby.template:45: screenshot
DEBUG [2021-08-07 19:19:28]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(115, 155), similarity=0.895
INFO [2021-08-07 19:19:28]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)
DEBUG [2021-08-07 19:19:30]:auto_derby.template:45: screenshot
DEBUG [2021-08-07 19:19:31]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(115, 155), similarity=0.895
INFO [2021-08-07 19:19:31]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)
DEBUG [2021-08-07 19:19:32]:auto_derby.template:45: screenshot
DEBUG [2021-08-07 19:19:33]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(115, 155), similarity=0.895
INFO [2021-08-07 19:19:33]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)
DEBUG [2021-08-07 19:19:34]:auto_derby.template:45: screenshot
DEBUG [2021-08-07 19:19:34]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(115, 155), similarity=0.895
INFO [2021-08-07 19:19:34]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)
DEBUG [2021-08-07 19:19:36]:auto_derby.template:45: screenshot
DEBUG [2021-08-07 19:19:37]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(115, 155), similarity=0.895
INFO [2021-08-07 19:19:37]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)
DEBUG [2021-08-07 19:19:39]:auto_derby.template:45: screenshot
DEBUG [2021-08-07 19:19:39]:auto_derby.template:177: not match: tmpl=tmpl<single_mode_class_detail_button.png>, pos=(115, 155), similarity=0.895
INFO [2021-08-07 19:19:39]:auto_derby.template:197: no match: tmpl=('single_mode_class_detail_button.png',)

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

这样的循环

@NateScarlet
Copy link
Owner

NateScarlet commented Aug 7, 2021

你没覆盖 .pos.png 用开发分支坐标不可能是 115 155

你是不是又重下了一遍主分支

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

全部重新下载了一下。。怕缺东西。

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

问题解决了 ,我是智障。弄错了。

@BaiZero
Copy link
Author

BaiZero commented Aug 7, 2021

对了大佬,建议在ADB里加一个 adb kill-server ,刚开始一直连不上模拟器因为这个。

@NateScarlet
Copy link
Owner

NateScarlet commented Aug 7, 2021

此项目的adb不依赖adb.exe 得连上才能执行命令 所以不行

而且通常应该是谁打开的资源就应该由谁负责释放 我一个脚本跑去关你的 adb server 有些越权了 可能导致其他程序未预期的行为

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants