Skip to content

Commit 711a0e3

Browse files
refactor: 出征识别
1 parent e5a0904 commit 711a0e3

14 files changed

Lines changed: 111 additions & 43 deletions

assets/interface.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
],
113113
"pipeline_override": {
114114
"退出远征1": {
115-
"template": "战斗/出征1.png",
115+
"template": "战斗/出征.png",
116116
"green_mask": false,
117117
"roi": [
118118
144,
@@ -254,7 +254,7 @@
254254
]
255255
},
256256
"退出远征1": {
257-
"template": "战斗/出征1.png",
257+
"template": "战斗/出征.png",
258258
"green_mask": false,
259259
"roi": [
260260
144,
-4.01 KB
Binary file not shown.
-16.6 KB
Binary file not shown.
-2.86 KB
Binary file not shown.

assets/resource/pipeline/決戰.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@
1111
]
1212
},
1313
"自动决战": {
14-
"recognition": "TemplateMatch",
15-
"template": "通用/出征2.png",
14+
"recognition": "OCR",
15+
"expected": "出征",
16+
"roi": [
17+
1198,
18+
661,
19+
71,
20+
38
21+
],
1622
"action": "Click",
17-
"green_mask": true,
1823
"next": [
1924
"[JumpBack]重新连接",
2025
"点击决战"

assets/resource/pipeline/結束前任務.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@
2828
]
2929
},
3030
"点击任务": {
31-
"recognition": "TemplateMatch",
32-
"template": "通用/任务.png",
31+
"recognition": "OCR",
32+
"expected": "任务",
33+
"roi": [
34+
877,
35+
664,
36+
57,
37+
32
38+
],
3339
"action": "Click",
3440
"next": [
3541
"[JumpBack]重新连接",
@@ -71,8 +77,14 @@
7177
]
7278
},
7379
"点击船坞": {
74-
"recognition": "TemplateMatch",
75-
"template": "通用/船坞.png",
80+
"recognition": "OCR",
81+
"expected": "船坞",
82+
"roi": [
83+
1021,
84+
664,
85+
60,
86+
30
87+
],
7688
"action": "Click",
7789
"next": [
7890
"[JumpBack]重新连接",

assets/resource/pipeline/自動建造.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@
3030
]
3131
},
3232
"建造进入菜单": {
33-
"recognition": "TemplateMatch",
34-
"template": "通用/出征2.png",
33+
"recognition": "OCR",
34+
"expected": "出征",
35+
"roi": [
36+
1198,
37+
661,
38+
71,
39+
38
40+
],
3541
"action": "Click",
36-
"green_mask": true,
3742
"target": [
3843
45,
3944
630,

assets/resource/pipeline/自動戰役.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@
1212
]
1313
},
1414
"自动战役": {
15-
"recognition": "TemplateMatch",
16-
"template": "通用/出征2.png",
15+
"recognition": "OCR",
16+
"expected": "出征",
17+
"roi": [
18+
1198,
19+
661,
20+
71,
21+
38
22+
],
1723
"action": "Click",
18-
"green_mask": true,
1924
"next": [
2025
"[JumpBack]重新连接",
2126
"点击战役",

assets/resource/pipeline/自動戰鬥.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,10 +1001,15 @@
10011001
]
10021002
},
10031003
"战斗船舱满尝试拆船": {
1004-
"recognition": "TemplateMatch",
1005-
"template": "通用/出征2.png",
1004+
"recognition": "OCR",
1005+
"expected": "出征",
1006+
"roi": [
1007+
1198,
1008+
661,
1009+
71,
1010+
38
1011+
],
10061012
"action": "Click",
1007-
"green_mask": true,
10081013
"target": [
10091014
45,
10101015
630,

0 commit comments

Comments
 (0)