辉鸭蛋
3167bf6590
fix: change mouse click method to use LeftButtonDown for improved accuracy #2618
2026-01-14 03:20:52 +08:00
辉鸭蛋
a10cdc32d0
新的角色编号框识别方式 & 出战角色识别 ( #2309 )
2025-10-10 02:49:18 +08:00
Jamis
a3492aaabe
fix wrongly recognized text 2 ( #2263 )
2025-09-25 09:58:40 +08:00
Jamis
fe21f945ab
Replace wrongly recognized text ( #2249 )
2025-09-22 21:42:37 +08:00
辉鸭蛋
0cec1aecfa
自动使用兑换码 ( #1895 )
2025-07-20 20:24:00 +08:00
Shatyuka
b2958ac646
用Image<Rgb24>替换Bitmap ( #1563 )
2025-05-11 11:03:53 +08:00
Shatyuka
0bea2d095a
截图优化 ( #1480 )
...
* BitBlt 优化
* BitBlt恢复Top-down
* 渲染时翻转图像
* CaptureSession引用计数
* 恢复成无拷贝Mat
* 合法性检查
* 优化截图预览窗口
* 保存截图文件必要时需要克隆一份Mat
* BitBlt内存池
* 返回拷贝就不用对Session做引用计数了
* 移除CaptureImageRes
* 优化DirectX
* 更好地处理padding
* BitBlt去掉padding
1920*1080的游戏窗口是4字节对齐的,因此不会有性能影响。这里主要用于测试。
* 修复修改窗口大小
* 合并CreateStagingTexture
* 修复设备丢失崩溃
* WGC截图支持HDR
* fix typo
* CodeQA
* 去掉1px窗口边框
* DirectX截图去掉A通道
* HDR转换使用GPU加速
---------
Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com >
2025-05-11 01:17:18 +08:00
Takaranoao
5b3bac478d
升级多个依赖&增加额外的推理加速功能&迁移OCR ( #1459 )
...
* 更新多个NuGet包至最新版本
* 重构模型加载以适应yolosharp
* feat: 改变接口。TensorRT缓存的初步支持,修改配置项。
* 更新依赖并调整变量顺序,修复加载问题
* 更新AvalonEdit和Microsoft.ML.OnnxRuntime包至最新版本,以修复问题
* fix: downgrade Microsoft.ML.OnnxRuntime.DirectML to version 1.21.0
* typo
* fix: change log level from warning to error for ONNX provider loading failure
* 增加 paddle ocr 的 onnx 模型
* feat: add PaddleOCR models for Chinese, English, and Latin recognition
* 使用cv的DNN生成Tensor,加速Yap文字识别
* feat: 尝试搓一个onnx的ocr
* clean up code
* chore: update OpenCvSharp4 package versions to 4.10.0.20241108
* 修复因格式化代码而丢的引用
* chore: update Microsoft.ML.OnnxRuntime.DirectML package to version 1.21.1 and improve logging for ONNX provider initialization
* chore: 等yolosharp更新再升级onnx
* chore: add Microsoft.ML.OnnxRuntime.Managed package and clean up logging in Det class
* fix: refactor output tensor handling in Det class for improved clarity
* 补充注释,修复DML的OCR问题
* 默认OCR推理使用CPU,整理配置
* fix error NETSDK1152: 找到了多个具有相同相对路径的发布输出文件
* fix(logging): enhance debug log for ONNX initialization with provider details
* 修复TensorRT模型缓存的加载问题
* fix(onnx): improve cached model retrieval and add file existence check
* fix(ocr): replace SrcGreyMat with SrcMat for region of interest processing
* fix(onnx): add file existence check for cached model and adjust session options for DirectML provider
* 增加硬件加速配置UI界面
* 移除旧的OCR模型
* 错别字
---------
Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com >
2025-05-11 01:08:37 +08:00
辉鸭蛋
1df15bb83c
提供老版本的稳定 BitBlt 功能
2025-04-11 00:11:42 +08:00
Takaranoao
cbaf1f6c36
更新OpenCvSharp4版本到4.10.0,PaddleOCR到2.7.0.3,尝试修复bitblt导致崩溃的问题 ( #1381 )
2025-04-01 14:47:13 +08:00
FishmanTheMurloc
57d33c4312
又一波钓鱼优化 ( #1301 )
...
* GetFishBarRect方法添加更复杂的算法,并为其配备独立的单元测试,和分离难度较大的测试用例(未熟练时两侧出现黄色动态折线的情况);GetFishBoxArea行为去掉拉条框初始位置必须位于屏幕中轴线的条件,并添加其后续Fishing行为的单元测试来验证可行性;EnterFishingMode行为使用结束时间来代替Sleep,并添加整体超时时间;添加一个鱼咬钩的假阳性测试用例仅供娱乐
* 补充GetFishBarRect算法,使通过遗漏的测试"20250314002439020_Fishing_Succeeded.png"
* 拉条增加1秒未检测持续时间以应对瞬间丢失拉条框的情况;新增一个检查提竿结果的行为;新增一个检查开始钓一条鱼的初始状态的方法,以应对行为状态错配的情况;一些行为将Sleep优化为DateTime;修改上述改动对应的单元测试
* 解决合并冲突剩余问题,删掉ImageRegion的Bitmap构造函数重载
* 提供给测试用例初始化的 SystemInfo、TaskContext 方法,使用 InitForTest 即可
* InitForTest
* 和鸭蛋昨夜的提交撞车了。。。抽象了ISystemInto供单元测试实例化Fake类;给BaseAssets类定义了成员字段systemInfo(我想,既然都是图片模板数据集,如此定义是合理的),供继承类AutoFishingAssets使用,并定义了其在单元测试的派生类;添加了一个900p的选取鱼饵测试用例;blackboard改为负责携带AutoFishingAssets,并将其实例化时机挪到独立任务的Start方法中,避免由于TaskContext尚未初始化导致获取到的SystemInfo为空
* 一个特殊的测试用例:抛竿的瞬间、开始检测咬杆时遇到了假阳性
* Revert "InitForTest"
This reverts commit 225e9783a7 .
* Revert "提供给测试用例初始化的 SystemInfo、TaskContext 方法,使用 InitForTest 即可"
This reverts commit 610c57263a .
* 为始终没有找到落点的情况添加计数,在第3次时直接退出,并添加此情况的单元测试
---------
Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com >
2025-03-18 19:51:42 +08:00
辉鸭蛋
807288ab90
重构底层截图器,大幅提升截图器耗时 ( #1302 )
...
* to mat init
* BitBlt 加锁
* 使用读写锁重构 Windows.Graphics.Capture,删除BGI自己命名的缓存设置
* dwm加锁并返回mat
* 队伍中没有对应元素角色修复日志问题
* 清除所有 DispatcherTimerOperationEnum 内容
* 修复单测的编译错误
* HDR Support
* 清理无用的截图器模式
2025-03-15 13:18:19 +08:00
FishmanTheMurloc
2a548ecb1b
过滤“获得”图标的条件数值优化,配有单元测试用例;完善超时收杆行为,使能应对收杆的同时鱼咬杆的情况,并配有单元测试;
2025-03-06 20:32:17 +08:00
秋云
4e44bb0e78
fix: resolve mouse simulation issue due to resolution change on screen off ( #1230 )
...
* fix: resolve mouse simulation issue due to resolution change on screen off
* fix: typo
2025-03-05 00:30:35 +08:00
FishmanTheMurloc
aead279c78
单元测试HelloWorld ( #1219 )
...
* AutoFishing为单元测试重构;一个简单的单元测试GetFishpondTest
* 将鼠标操作的注入挪到DesktopRegion中;提供LoadAssetImage的一个不依赖配置的重载;ChooseBait的代码中将Bv的方法替换成不依赖配置的写法;完成ChooseBait的单元测试
* 使用TimeProvider改写ChooseBait以适用单元测试;添加假的绘图上下文类;添加抛竿行为的单元测试
* 选择鱼饵行为比对上次选择的鱼饵,如果相同则直接抛竿(之前的版本曾有此逻辑),但测下来有时会选错饵导致无限抛竿,调整了相关步骤的等待间隔,希望能简单地压制此bug
* 获取鱼群时过滤“获得”界面的鱼图标:1、在Fishpond构造函数中实现。2、配有此类情况的单元测试。3、并由此降低鱼钓上后的等待时间;
修复绘制鱼群时索引不正确导致遗漏的bug;获取鱼群时绘制鱼群供分析
2025-03-05 00:30:11 +08:00
辉鸭蛋
4cb5442161
add switch party task
...
在 `BetterGenshinImpact.csproj` 文件中,添加了两个新文件夹路径 `GameTask\OneDragon\` 和 `User\AutoPathing\`。
在 `BvStatus.cs` 文件中:
- 将 `WaitForMainUi` 方法的默认重试次数从 25 次减少到 10 次。
- 添加了 `IsInPartyViewUi` 和 `WaitForPartyViewUi` 方法。
在 `ElementAssets.cs` 文件中:
- 添加并初始化了 `PartyBtnChooseView` 和 `PartyBtnDelete` 两个新的识别对象。
在 `NewRetry.cs` 文件中:
- 添加了 `using System.Threading.Tasks;` 引用。
- 添加了 `WaitForAction` 方法。
在 `Region.cs` 文件中,添加了一个新的 `ClickTo` 方法,该方法接受 `double` 类型的参数。
在 `ReturnMainUiTask.cs` 文件中:
- 删除了旧的 `ReturnMainUiTask` 类。
- 添加了新的 `ReturnMainUiTask` 类,内容与旧的类似,但文件路径和命名空间有所变化。
在 `RunnerContext.cs` 文件中,移除了 `using BetterGenshinImpact.GameTask.OneDragon;` 引用,添加了 `using BetterGenshinImpact.GameTask.Common.Job;` 引用。
在 `HotKeyPageViewModel.cs` 文件中:
- 添加了多个 `using` 引用,包括 `using System.Threading.Tasks;` 和 `using BetterGenshinImpact.GameTask.Common.Job;`。
- 修改了多个方法的代码格式,使其更加简洁。
- 添加了多个新的快捷键设置。
添加了两个新的 PNG 图片文件 `party_btn_choose_view.png` 和 `party_btn_delete.png`。
在 `SwitchPartyTask.cs` 文件中,添加了新的 `SwitchPartyTask` 类,用于切换队伍。
2024-10-29 01:41:43 +08:00
辉鸭蛋
7df330a9fb
低分辨率缩放
2024-09-24 01:18:26 +08:00
qhy040404
c490d29aa1
code cleanup
2024-08-14 18:01:02 +08:00
辉鸭蛋
809f974cbb
auto hangout: auto press skip #335
2024-06-08 00:59:28 +08:00
辉鸭蛋
cfe963dcae
auto skip: backgroud click
2024-06-01 18:09:34 +08:00
ema
9378a134bd
remove: package H.InputSimulator #154
2024-05-12 05:16:27 +08:00
辉鸭蛋
c27b5176e7
16:10 high dpi #373
2024-05-12 00:28:37 +08:00
辉鸭蛋
85e0c827ca
fix task not work in 16:10 #373
2024-05-11 23:41:07 +08:00
辉鸭蛋
ee154da3c3
music game: Gdi32.GetPixel
2024-05-09 02:46:33 +08:00
辉鸭蛋
e250498c57
quick tp : eliminate interference from place names on the map
2024-05-04 15:55:00 +08:00
辉鸭蛋
87cb044947
fix bug & edit tip
2024-05-04 13:30:03 +08:00
辉鸭蛋
1f6d4a3346
refactor: QuickBuyTask
2024-05-04 11:57:58 +08:00
辉鸭蛋
b1e33a6339
refactor: QuickSereniteaPotTask
2024-05-04 11:49:22 +08:00
辉鸭蛋
7953a76b3d
refactor: auto domain
2024-05-03 22:22:42 +08:00
辉鸭蛋
be99fb3605
refactor: auto fish
2024-05-03 20:10:43 +08:00
辉鸭蛋
6bf73adce2
fix ra bug
2024-05-03 19:43:22 +08:00
辉鸭蛋
8acf23e9ce
refactor: quick tp & add: ra.ocr
2024-05-03 12:00:34 +08:00
辉鸭蛋
912d86ac33
refactor: auto hangout
2024-05-02 21:05:10 +08:00
辉鸭蛋
4fa718c6e0
refactor: auto skip
2024-05-02 19:06:10 +08:00
辉鸭蛋
c2d3e132e8
refactor: RectArea -> Region compilation passed
2024-05-02 14:45:07 +08:00
辉鸭蛋
f0bfdde4b8
初始化新的坐标系工具类
2024-05-02 12:16:36 +08:00