Open
Conversation
- 新增rpc.py文件实现OCR服务端和客户端代理类 - 添加ensure_ocr_server_started函数用于启动OCR服务器进程 - 修改base_ocr.py使用get_ocr_model工厂函数获取模型实例 - 更新models.py添加ModelProxy和OCR模型缓存机制 - 在gui.py、script.py和server.py中添加OCR服务启动检查 - 实现detect_and_ocr方法支持远程调用参数传递 - 添加Socket端口检测和多进程管理功能
- 移除旧的交集计算函数,优化问题处理流程 - 添加2-gram分词和标准化预处理功能 - 实现基于倒排索引的快速问题匹配算法 - 引入缓存机制支持多答案选项存储 - 重构answer_one方法,新增多个处理策略分支 - 实现相似题匹配和选项模糊匹配功能 - 添加未知问题记录功能到CSV文件 - 更新测试用例覆盖各种匹配场景 - 优化Quiz任务中的日志输出和变量初始化
- 移除 cached_property 依赖并替换为直接文件操作 - 集成 filelock 库以确保多线程安全的日志写入 - 将日志文件创建逻辑封装到专用方法中 - 修改文件写入逻辑以支持并发访问控制 - 移除不再需要的文件关闭方法 - 添加文件操作同步机制确保数据完整性
- 新增御魂关闭状态图片匹配规则 I_ST_SOULS_CLOSE - 在图像配置文件中添加御魂关闭状态模板定义 - 修改脚本逻辑以检测并点击御魂关闭状态 - 调整点击间隔时间优化操作流程
- 增加开始战斗的最大重试次数 - 将最大重试次数从 5 增加到 8 - 修改了随机奖励点击的排除区域配置 - 调整了奖励识别后的继续条件判断逻辑 - 在非战斗状态时清除设备卡死记录
- 在.gitignore中添加AI相关文件和目录忽略规则 - 从server.py的kill_server端点调用shutdown_ocr_server函数 - 实现shutdown_ocr_server函数用于安全终止OCR服务器进程 - 使用atexit注册OCR服务器清理函数确保程序退出时释放资源 - 在主服务器启动流程中添加try-finally块确保OCR服务器正常关闭 - 移除已废弃的.claude/settings.local.json忽略规则
DailyTrifles: - 吉闻按钮识别从图片匹配改为OCR识别 - 删除 I_LUCK_MSG 图片规则,改用 O_LUCK_MSG OCR 规则 - 使用 ocr_appear_click 替代 appear_then_click - 移除 image.json 中的 luck_msg 配置项 - 优点:无需维护图片资源,识别更稳定 FrogBoss: - 新增 AlwaysRed/AlwaysBlue 押注策略(永远押红/蓝) - 扩大 I_FROG_BOSS_ENTER 搜索范围 (roi_back: 78x320 -> 90x380) MemoryScrolls: - 碎片未达50时添加失败处理,避免任务卡住 RichMan: - 调整 I_SIDE_CHECK_SPECIAL 搜索范围 (roi_back: 42x42 -> 100x100) - 更新 navbar_side_check_special.png 图片
- 替换 page_check_friends.png 图片 - 更新坐标 (74,628,58,66)
fix(GuildActivityMonitor): 调整代码结构
feat(ocr): OCR Server
Dev answer
fix(SoulsTidy): enter souls fail
fix(ActivityShikigami): 优化爬塔结算点击逻辑
feat: 吉闻OCR识别改进适配新的氪金空间皮肤及杂项适配
修改每周分享任务的图片识别范围(兼容体服)
fix(GameUi): adjust 'exploration_goto_six_gates' roi
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.
Automated PR created by GitHub Actions. Merge dev into master