P1-5 镜牢选队容忍 OCR 误读与队名后缀
- 队名先归一:去空白、NFKC 全角转半角、改回实测误读(震颐→震颤、沉论→沉沦、编#→编队#) - 精确匹配优先;否则接受这一屏唯一的「名字+后缀」(流血队、流血(X)),多条不点 - 顶栏确认只认精确,避免把 流血2 当成 流血 - 没命中时日志打印每屏看到的名字,点了没变时打印顶栏读到的文字 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@ TEAM_HEADER = (170, 520, 90, 150) # 顶栏队名位置,用来确
|
|||||||
_team_ocr(auto) -> [(text, x, y), ...] # 整屏 OCR 后清洗,不排序
|
_team_ocr(auto) -> [(text, x, y), ...] # 整屏 OCR 后清洗,不排序
|
||||||
_in_list(x, y) / _in_header(x, y) # 区域判定
|
_in_list(x, y) / _in_header(x, y) # 区域判定
|
||||||
_scroll_team_list(auto, direction, times, distance) # +1=回顶部, -1=往下翻
|
_scroll_team_list(auto, direction, times, distance) # +1=回顶部, -1=往下翻
|
||||||
_header_is(auto, name) / _wait_header(auto, name) # 顶栏确认(3 次 × 1.2s)
|
_header_is(auto, names) / _wait_header(auto, names) # 顶栏确认(3 次 × 1.2s,归一后精确匹配)
|
||||||
_select_team_by_name(auto, names, log, rounds=4) # 主流程,返回 bool
|
_select_team_by_name(auto, names, log, rounds=4) # 主流程,返回 bool
|
||||||
install_system_team_selection(log=print) # 安装补丁,返回原始 select_battle_team
|
install_system_team_selection(log=print) # 安装补丁,返回原始 select_battle_team
|
||||||
```
|
```
|
||||||
@@ -98,7 +98,8 @@ if task in ('mirror', 'all'):
|
|||||||
|
|
||||||
> `#1`~`#12` 已不存在。任何按 `编队#N` 找队的逻辑在这个号上都会失败,这是本次问题的根。
|
> `#1`~`#12` 已不存在。任何按 `编队#N` 找队的逻辑在这个号上都会失败,这是本次问题的根。
|
||||||
>
|
>
|
||||||
> 队名改动后必须同步 `SYSTEM_TEAM_NAMES`;补丁只做**精确匹配**(`text == name`),不做子串。
|
> 队名改动后最好同步 `SYSTEM_TEAM_NAMES`。2026-11-14 起(BACKLOG P1-5)名字先归一(空白/全半角/`震颐`→`震颤` 等误读),
|
||||||
|
> 精确匹配优先;没有精确匹配时接受这一屏**唯一**的「名字+后缀」(`流血队`),不做任意子串。顶栏确认仍只认精确。
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user