feat(decisive): 决战模式EX-1支持及节点识别优化#403
Merged
huan-yp merged 5 commits intoOpenWSGR:mainfrom Apr 9, 2026
Merged
Conversation
- 将分散的检测点、颜色、容差配置合并为统一的 _STAGES_CHECK 字典 - 所有章节使用相同的检测逻辑,仅参数不同 - 第6章使用黄色标记(249,232,94),容差40.0 - 简化 recognize_stage 方法,移除第1章特殊处理 - 删除冗余的 _recognize_ex1_stage_by_pixel 方法 - 使用递进式判定逻辑:检测前2个小关推断当前进度
主要修复: 1. 将节点识别从Rust DLL迁移至OCR,避免panic崩溃 2. 修复暂离后重进被误判为首进的问题 3. 优化节点推进逻辑,战斗后使用字母递进而非OCR识别 4. 修复第1章夜战点配置错误 技术细节: - recognize_node() 使用OCREngine替代DLL调用 - _handle_node_result() 使用逻辑递进(ABC)替代图像识别 - _handle_waiting_for_map() 增加node=='U'判断区分暂离重进 - 添加allowlist限制OCR只识别大写字母提高准确率
主要改进: 1. 添加图像增强预处理(CLAHE对比度增强+锐化滤波) 2. 使用_MAP_END动态确定OCR字符集范围(A-F/A-H/A-J) 3. 放宽裁剪范围,依赖图像增强而非严格颜色过滤 4. 更新调用点传入chapter和stage参数 技术细节: - recognize_node() 添加chapter/stage参数 - 使用cv2.createCLAHE()提升局部对比度 - 使用Otsu自动阈值替代固定阈值 - 使用增强后的灰度图而非二值图进行OCR
Closed
Contributor
|
请上传测试案例用于回归,在这里发 link,不要进 repo |
for more information, see https://pre-commit.ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
主要改进
1. EX-1决战支持
2. 小关识别配置优化
3. 节点OCR识别优化
4. 流程稳定性修复
技术细节
ecognize_node() 添加chapter/stage参数
测试