[Bug][JP] 一期科研 D 系图纸图标已更新,`get_research_ship_jp` 无法识别(Ship recognition failed)

Open Beginner friendly
#6,194 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
opencv, python

Research direction

Start by reading the research blueprint assets in assets/research_blueprint/ and the ship recognition path that calls get_research_ship_jp(); the issue identifies the matching threshold and the affected S1-D ships. Compare the existing templates with the supplied replacement icons and update the missing icons for the affected ships. Confirm the new templates recognize the S1-D projects while keeping other ship icons below the reported similarity levels.

Written by the indexing model from the issue text.

Description

在提问之前...
  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我已经阅读了 Wiki 中的 常见问题(FAQ)
  • 我正在使用最新版的 Alas
描述你的问题

日服科研。一期(S1)D 系项目的图纸图标在游戏里换成了新的 Q 版立绘,assets/research_blueprint/ 里的旧图和新图标的相似度只有 0.51~0.57(阈值 0.9),所以 get_research_ship_jp() 一直返回空,项目被判为 Invalid,D 系科研永远不会被选中。

2026-10-14~2026-11-03 的 log 中 Ship recognition failed 共 200 多次,全部是 S1-D-*(S1-D-0.5 / 2.5 / 5 / 8)。六期及以后的 D 系可以正常识别。

我用 adb 截取了科研详情画面,从中切出了 Monarch 和 Saint Louis 的新图标替换旧文件后,这两艘的相似度为 1.0,和其他舰船的图标相似度 ≤ 0.705,识别正常。Neptune、Ibuki、Izumo、Roon 没有截到画面,所以没有新图标,估计同样需要更新。

如何复现
  1. 日服,科研中出现一期 D 系项目(例如 S1-D-2.5 Saint Louis)
  2. 运行 Research
  3. log 中出现 Ship recognition failed 和 Invalid research S1-D-2.5 (Invalid)
预期行为

能识别出一期 D 系项目的舰船。

相关 Logs
2026-10-28 10:54:39.136 | INFO | Research goto detail (project 3)
2026-10-28 10:54:39.138 | INFO | Click ( 867,  197) @ ENTRANCE_4
2026-10-28 10:54:40.360 | INFO | [DURATION_DETAIL 0.019s] 02:30:00
2026-10-28 10:54:40.472 | WARNING | Ship recognition failed
2026-10-28 10:54:40.473 | WARNING | Invalid research S1-D-2.5 (Invalid)
2026-10-28 10:54:40.475 | INFO | [Project] S1-D-2.5 (Invalid)

相似度(match_template(image, template, DETAIL_BLUEPRINT.area, offset=(10, 10))):

截图 旧 monarch.png 旧 saintlouis.png 新图标
S1-D Saint Louis (1) 0.405 0.514 1.0
S1-D Monarch 0.566 0.430 1.0
S1-D Saint Louis (2) 0.405 0.516 1.0
截图

科研详情画面的图纸区域:(截图见下方评论)

还有别的吗?

替换用的新图标(和 assets/research_blueprint/ 相同的尺寸、从 1280x720 截图切出):(文件见下方评论)

Dominant language
Python
Stars
9.8k
Forks
1.2k
Avg merge
18h 42m
Merged PRs (30d)
33

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LmeSzinc/AzurLaneAutoScript

All issues in LmeSzinc/AzurLaneAutoScript

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.