Commit Graph

12 Commits

Author SHA1 Message Date
Luhan Xiao
0a7f6e272c fix(macOS): 降低 RA4 和 RA15 二倍速识别阈值 (#16860)
## 变更内容

- 在 macOS平台差异配置中,为 RA4 和 RA15 的二倍速识别节点补充 `templThreshold: 0.7`
- 与此前 macOS的 iOS 差异配置保持一致

## 修改位置

- `resource/platform_diff/iOS/resource/tasks.json`

## 原因

RA4 和 RA15 在 iOS/macOS 触控环境下识别二倍速按钮时也有用户反馈出现模板匹配分数偏低的问题,和此前 RA1 的情况类似。  
因此仅在 iOS 平台差异文件中降低对应节点阈值,避免影响通用任务配置和其他平台。

## 说明

本次未修改通用任务文件 `resource/tasks/RA/Reclamation3.json`。

## Summary by Sourcery

错误修复:
- 在 macOS/iOS 的 platform-diff 任务配置中,降低 RA4 和 RA15 的双倍速度模板匹配阈值,以减少漏检情况。

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Bug Fixes:
- Lower the double-speed template matching threshold for RA4 and RA15 in
the macOS/iOS platform-diff task configuration to reduce missed
detections.

</details>
2026-05-26 02:24:24 +08:00
github-actions[bot]
294d1c52be chore: Auto update by pre-commit hooks
https://github.com/MaaAssistantArknights/MaaAssistantArknights/actions/runs/26254266055
[skip changelog]
2026-05-21 21:32:08 +00:00
Luhan Xiao
c04dab8c05 fix(macOS): 为 PlayCover 生息演算 RA1 二倍速识别添加 iOS 模板和降低识别阈值 (#16779)
## 修改内容

为 iOS / PlayCover 差异资源中的 `RelaunchAnchor@RA@RA1-DoubleSpeed`
增加单独的模板匹配阈值:

```json
"RelaunchAnchor@RA@RA1-DoubleSpeed": {
    "templThreshold": 0.75
}
```

修改文件:

```text
resource/platform_diff/iOS/resource/tasks.json
```

## 问题背景

在 MacBook Air M4 + PlayCover 环境下执行生息演算 `Reclamation / RelaunchAnchor`
时,RA-1 流程会在部署采集基站后卡在:

```text
RelaunchAnchor@RA@RA1-WaitDoubleSpeed
```

游戏画面右上角实际已经出现二倍速按钮,但模板匹配分数只有约 `0.78`,低于默认阈值时不会进入 `RA1-DoubleSpeed`
点击节点,而是持续停留在 `RA1-WaitDoubleSpeed / DoNothing`。

相关问题背景可参考:#16775、#16778  
更完整的问题发现、排查、修改和本地测试闭环见:#16778

## 本地验证

本地先恢复了通用任务文件 `resource/tasks/RA/Reclamation3.json`,只在 iOS 差异文件中加入上述
`templThreshold` 配置后,重新启动 MAA 并测试。

日志中可以看到 iOS 差异资源被加载:

```text
load ../../../../../../../../Applications/MAA.app/Contents/Resources/resource/platform_diff/iOS/resource/template
load ret 1
```

原本卡住的位置可以成功识别并进入 `RA1-DoubleSpeed`:

```text
cur_task":"RelaunchAnchor@RA@RA1-WaitDoubleSpeed"
to_be_recognized":["RelaunchAnchor@RA@RA1-DoubleSpeed","RelaunchAnchor@RA@RA1-WaitDoubleSpeed"]

match_templ | RelaunchAnchor@RA@DoubleSpeed.png [optimized] score: 0.784211 rect: [ 1068, 24, 52, 63 ] roi: [ 1060, 20, 80, 70 ]
analyze | MatchTemplate RelaunchAnchor@RA@RA1-DoubleSpeed

"action":"ClickSelf"
"algorithm":"MatchTemplate"
"score":0.784211
"task":"RA1-DoubleSpeed"

Click with scaled coordinates (1094, 83) 1.5
PlayTools click: (1641, 124)
```

之后流程继续进入后续节点:

```text
RelaunchAnchor@RA@RA1-DeployGatheringBaseWait
RelaunchAnchor@RA@RA1-WaitCost
RelaunchAnchor@RA@RA1-Cost
RelaunchAnchor@RA@RA1-DeployOperatorSwipe
RelaunchAnchor@RA@RA1-DeployOperatorDirection
```

本地游戏内也确认可以正常继续执行,不再卡在 `RA1-WaitDoubleSpeed`。

## 说明

该修改没有改动通用 `resource/tasks/RA/Reclamation3.json`,只对 iOS / PlayCover
平台差异资源生效,用于兼容 PlayCover 环境下二倍速按钮模板匹配分数偏低的问题。
2026-05-22 00:57:29 +08:00
Weiyou Wang
7e7feb9599 fix: 调低 MacOS PlayCover 下对 InfrastControl 识别的阈值 (#14139) 2025-09-17 00:21:20 +08:00
BxFS
39fe954980 fix: burden/toil tasks threshold 0.9 -> 0.8 (#12087)
---------

Co-authored-by: Constrat <56174894+Constrat@users.noreply.github.com>
2025-03-05 18:42:09 +01:00
晓丶梦丶仁
4b3a247b9a fix: Mac 日服 IS4 识别阈值 (#11979)
fix: mac 日服 IS4 识别阈值
2025-02-20 22:58:36 +08:00
Hao Guan
42cddce5c6 feat(mac): 开始唤醒支持账号切换 (#11803) 2025-02-08 18:52:42 +08:00
Weiyou Wang
fca7ad6a6a fix: 为 ios端降低 Sarkaz@Roguelike@DecreaseBurdenAbandonThought 任务模版匹配的 threshold (#11266) 2024-12-01 21:09:20 +08:00
Hao Guan
4d8d31430e fix: 调整iOS萨卡兹肉鸽节点刷新模板识别阈值 2024-07-21 22:33:44 +08:00
Constrat
d8acf29140 fix: reduced Mizuki@Roguelike@MissionFailedFlag threshold for iOS
fix #7864 temporary fix as #7872 exists
2024-01-07 17:04:01 +08:00
lanhao34
02c4d865c5 fix: 降低iOS平台中部分模板匹配的阈值 (#6963) 2023-10-17 22:51:32 +08:00
MistEO
8366f51b47 chore: rename platform resource for iOS 2023-08-22 10:11:31 +08:00